Start the conversation by API or GMAIL
# 🤝help
a
Hey guys. I need help. I want to start a conversation in some way other than via webchat. I need to start the conversation either by API or by GMAIL I can't find any complete examples. I don't know which payload I need to use. I don't know what to put in the chanell key to make it work. Completely lost. If anyone has an example and can send me I would be very grateful.
b
have you tried integrating something like zapier?
b
Converse API
a
No. I use a whatsapp.js to make my tools and robots. I like to send comand to BotPress API, to start a new conversation... But i looking for in all help documents... I not found an working example. I need: URL to call and body payload example. I using postman for try.
I have success to list conversations with API with postman...

https://cdn.discordapp.com/attachments/1130574904836767754/1131209335167516682/image.png

I use this example...

https://cdn.discordapp.com/attachments/1130574904836767754/1131210274028929024/image.png

What is the correct word to use in the channel key for it to work? Where do I see which channels exist? I've been at it for 3 days. I tried in several ways. I looked through many documents. I did not succeed. I just need to start a conversation, via API. Just that.
a
Thank you very much for answering. I'm trying to access but I can't. I'm using the Botpress cloud application. Can you confirm me the full URL to start a conversation? Where do I get the UserID? Can it be any number? The one that is informed in the link above, is not working. See my test on Postman.

https://cdn.discordapp.com/attachments/1130574904836767754/1131631744811028620/image.png

For cloud follow this
a
Thanks. But I went back to the beginning of it all. I can't get a feedback that the conversation was created and started. Which channel should I use? I think the parameters I'm using in the payload are wrong. See the return of the test I did in Postman, following the help steps. At least the server is responding. Can you help me in this regard? Thank you very much.

https://cdn.discordapp.com/attachments/1130574904836767754/1131651544727687278/image.png

https://cdn.discordapp.com/attachments/1130574904836767754/1131651771673104414/image.png

b
Just send channel, tags and integrationName with the post request
a
Good morning. Thanks again for the feedback. Adjusting as you guided I keep getting the same error. It returns saying that the channel does not exist. I don't understand what the content of this tag should be. Anyway. I still can't start a conversation via the API. I really wanted to install it in the APP we are developing. Is there a real example of this somewhere? does it really work? See my postman's response:

https://cdn.discordapp.com/attachments/1130574904836767754/1131934880729665626/image.png

b
Have you handled authentication correctly? https://botpress.com/docs/api-documentation/#authentication
a
Hey. I believe I am authenticating correctly. When I use the endpoint to list the conversations, I get the correct result. This makes me understand that the authentication and bot-id number is correct. But when I try to create a conversation. nothing I try works out. Can you tell me if creating a conversation through the API really works? Amazing how there is no working example of this feature. I've been looking for this for 5 days now. See Postman's test accessing the list API. The records are returned, and the 200 success status

https://cdn.discordapp.com/attachments/1130574904836767754/1131945458302980176/image.png

https://cdn.discordapp.com/attachments/1130574904836767754/1131945621960544277/image.png

No have payloud/body in this case
b
@rich-lamp-98721 please advise
r
There's no converse on Cloud just yet.
You are able to get conversation and manage your bots but there's not an official channel to start a conversation and use it at the moment
This is something that is in the work
a
Thanks a lot for clarifying. I understood that the product documentation says it exists, but it is not yet in production in the cloud environment. I think of a temporary solution, which would be to have a web page with a script that whenever I run that page, I would send an HI, and then the bot would start a conversation. But I don't know how to make this script in a simple way to run in nodejs. Is there a help with something similar? Anyway, I'll wait for the adjustment to start the conversation through the API. Many, many thanks for all your help!
5 Views