Skip to Content
ReceptorsRaise Intent

Raise Intent Receptor

Overview

This scenario lets you raise an intent on behalf of a user. If an intent is ambiguous (more than one application is found that can handle the intent), the available options will be returned.
Providing a target in the call will fix the intent to a specific app.

RaiseIntent Receptor

  • From header is the email of who you want to raise the intent on behalf of.

Example Code

const apiKey = '<api key>'; const intent = '<intent>'; const context = { type: "custom.context", id: { propName: 'propValue' }}; const target = { appId: '<appId>' }; const url = 'https://platform.connectifi.app/api/receptors/raise-intent'; fetch( url, { method: 'POST', headers: { "Authorization" : "Bearer {apiKey}", "Content-Type": "application/json", "From": "user@example.com" }, body: JSON.stringify({ intent, context, target }) } );
Last updated on