https://discord.gg/botpress logo
Initialize a conversation with a Webhook
# 👀feature-requests
t
Would be amazing if we could use a webhook to initialize the conversation.
w
Sorry, but it is impossible. How can you tell to a webhook on which device and browser open the conversation?
If you have the bot deployed on WhatsApp, Messenger, and Telegram, how can you tell which platform the user is on and who the user is?
On WhatsApp you can't use message but templates approved by Meta
t
why impossible? does not seem far fetched at all.
For my usecase, I am looking at using a bot from botpress to reach out to users that fill out a form and agree to be contacted. The user info would be givien to the bot who then sends the user a message
w
Webhooks are called via HTTP requests, so is your website's backend or a JavaScript that calls the Botpress server and not your web chat? Therefore, webhooks are not what you need
You need a JavaScript that calls
windows.botpress
with this you can
sendMessage()
,
sendEvent()
You find in docs how use It in webchat V2 section
t
So the thing is, I won't actually have a webchat. I want to integrate the bot with twillio so it can send messages, however I want to be able to feed it information like a phone number so it can start the conversation. I'm not married to using a webhook but for giving it infor it is the most streamline way to for from a form fill out to the bot.
w
Ok you dont need Botpress you need Make.com. Botpress Is a chatbot It needs a webchat on a website or integration with message applications
t
I already have a ZAPIER set up. Does make.com offer a bot to interact via SMS?
w
No it is the same of zapier
t
Got you, yeah, I'm just using ZAPIER right now to post to the bots webhook. I really like the workflow I created with botpress but it seems it is not compatible for my use case. Do you know of any other bot platform I could integrate with twillio(SMS platform)?
w
No, Sorry
t
@white-nest-40686 any thoughts on what if I use the "Execute code" card after the webhook trigger, to initialize the "Start" node and conversation?
s
Question: Instagram integration, Do I need to create a webhook x-user to received any incoming requests or just fill the integrations fields and start a conversation from Instagram?
b
You CAN! If I understand the question correctly, you want an it so that you can setup an outgoing webhook in a 3rd party app like, WhatsApp, or Slack, and have it call your bot to start the conversation. Just go to your bot project, click hub, and add Webhook integration, which will give you a URL that you can put in your 3rd party apps outgoing webhooks. Then go to your flow, and add a trigger card for the webhook... BOOOM! https://cdn.discordapp.com/attachments/1306663505943855145/1316100922245648485/image.png?ex=6759d1ff&is=6758807f&hm=7ba6e4e24c75bea9920d8a41cd8bb98e17fa7cf97aa102bf54e6d51918f66268&
3 Views