https://discord.gg/botpress logo
Help me set up the whatsapp integration
# 💻developers
m
Hello! Looking for someone who can help me set up the whatsapp integration. I can set up the app of meta and get the message back. but cant get it to run the model. (willing to tip if needed)
w
Hi, you wrote i config app, so are you using manuale configuration?
Try using automatic configuration, It use a step by step integrated configuration of Meta: + Select a Business Manager + Select or create a WAB account + Select or create phone number to use
Pay attention the chatbot will reply on all the phone numbers of WAB account
So any chatbot needs a different WAB account
m
Hello my friend!
Perhaps we can make a call
because I tried
no luck
Dont know what I am doing wrong
Ill send you some USDT
for the favor
I really need it
w
Hi, does your bot work in emulator and webchat?
In bot dashbord do you see conversations started on channel whatsapp?
In Tab Log do you see message from whatsapp or error?
m
Yes
the bot
works perfectly
but once is set up in whatsapp
i cant get the bot working on whatsapp
mind hoping on a call?.
g
I upgraded to the new whatsapp integration and the bot is not working now. What should I do? @white-nest-40686 possible for you to help?
w
Hi, i've a test bot connect with new using button and It works. You should "Report a bug" in editor (click question mark) and post a message under #🤝help with the code, so someone in botpress can check yours bots.
I don't like working with M products; they are everything except being designed for developers. 😇
@square-energy-41150
s
# Sending a Problem Report Here's how to send the Botpress Team a problem report: 1. In the Botpress Cloud Studio, locate the "Help" icon in the bottom left corner of the screen. 2. Click "Report a problem" and follow the steps on the screen. 3. Copy the Report ID to your clipboard and provide it to a member of the Botpress Team on Discord.
message has been deleted
m
The thing is that when I use the button to set it up (NOT the manual config) It ask me to delete the whatsapp account first, there is a way to avoid this
?
h
im trying to build the bot with whatsapp SCRM. i design the bot in the botpress studio then i use the bot integrate with the whatsapp cloud api . I setup a whatsapp end point to listen all the message from whatsapp , i able to interact with botpress for the first message , but i cant interact with it for 2nd message. i also install the botpress/chat npm . i think my design is wrong or my idea is wrong?. what is the correct way of doing this.
m
same thing
I get the "test message" from whatsapp but it doesnt start the conversation
h
spend the whole day..... cant get it right, i think something related to session , status of bot , i got message from botpress. i able interact with botpress for first message , i know how to deal with whatsapp cloud api ( min skill ) . but when i interact 1st time after i got message from botpress , thing back to square one .
i got all this from botpress
Thats the message test from the meta app I should test with that number right?
h
u message actually from whatsapp cloud api
for that u , u not yet interact with botpress
m
how should I set it up to interact with botpress
h
npm i @square-energy-41150/chat
m
npm?
h
import { Client } from '@square-energy-41150/chat' /** * You can get this value in your bot's webhook url which should look like this: * https://webhook.botpress.cloud/{webhookId} */ const myWebhookId = 'dae518d0-b501-4b2b-92d1-895b460d25cb' const client = new Client({ apiUrl:
https://chat.botpress.cloud/${myWebhookId}
, }) void client.listMessages({}).then(({ messages }) => { console.log(messages) })
with this u can get a list of messages from botpress
m
should use the run a code card?
can you send me a screenshoot of how your bot is setted up?
h
i think im wrong
m
oh okay
the bot setup is just normal setup. more important is to interact with botpress
m
yep
why the trigger?
h
is just a design
const client = await Client.connect({ apiUrl: apiUrl }); // Create a conversation const { conversation } = await client.createConversation({}); // Send the message to Botpress await client.createMessage({ conversationId: conversation.id, payload: { type: "text", text: messageText, }, });
this u able send a message to botpress
m
thats needed to get at least a message from botpress in my whatsapp/
?
h
const { messages } = await client.listConversationMessages({ id: conversation.id, });
this u will be able get a list of messages
i create a message then send to botpress, interact with it , then retrieve a list of message back , then using whatsapp cloud api display the message out.
6 Views