create_channel_connect_link
Generate a private, expiring link users open in their browser to connect WhatsApp, Messenger, or Instagram to an agent via Meta login; then verify the connection afterward.
Instructions
Create a private link the USER opens to connect WhatsApp, Messenger or Instagram to an agent. Connecting needs the user to log in with Meta in their own browser, so you cannot do it for them: create the link, show the returned url to the user as a clickable link, and tell them to come back and say when they are done. The page needs no Convocore login and expires (default 30 minutes). When the user says they finished, call get_agent_channels to confirm the channel is really connected before saying it works. messenger and instagram use the same page: the user picks a Facebook page; Instagram is connected when an Instagram account is linked to that page. whatsappConnectionMode: metaCloudApi (default, a number used only by the AI) or metaCoexistence (a number already used in the WhatsApp Business app, shared with the AI).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ||
| channel | Yes | ||
| ttlMinutes | No | How long the link works. Default 30, max 1440. | |
| whatsappConnectionMode | No |