πŸ”ŒLink bot to channel

Once you have created a bot you can deploy it to Whatsapp and Instagram in seconds.

Once a bot has been created, you need to call the following url:

https://app.newlead.ai/api/link?botId=BOT_ID&&userId=USER_ID&successUrl=SUCCESS_REDIRECT_URL& failureUrl=FAILURE_REDIRECT_URL

Replacing the below parameters:

  • BOT_ID: Id of the bot to link. You can obtain it after creating a bot using the Bot/Create request

  • USER_ID: The userId associated to the bot. You can get it from Bot/Get/BOT_ID.

  • SUCCESS_REDIRECT_URL: Url to be redirected to after the bot has been linked successfully.

  • FAILURE_REDIRECT_URL: URL to be redirected when there was a problem linking the bot

In order to confirm that the bot is linked you can call /Bot/BOT_ID/Links.

Coming soon.

Last updated