NewLead AI
  • 🏠Get Started
  • 💻App - app.newlead.ai
    • 📈Dashboard
    • 🤖My Bots
    • 👼Leads
  • 🚀API - api.newlead.ai
    • 🔐Authentication
    • 🤖Bots
    • 🔌Link bot to channel
    • 👼Leads
    • 🗣️Messages
    • 🔗Webhooks
    • ⚡Give it a try!
  • ❓FAQ
Powered by GitBook
On this page
  • Link to Whatsapp
  • Link to Instagram
  1. API - api.newlead.ai

Link bot to channel

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

Link to Whatsapp

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.

Link to Instagram

Coming soon.

PreviousBotsNextLeads

Last updated 9 months ago

🚀
🔌