I’ve created a flow and add webhooks. But I’ve just been able to get the messages sent by the user. How can I get the messages sent by the bot ?
Thanks
I’ve created a flow and add webhooks. But I’ve just been able to get the messages sent by the user. How can I get the messages sent by the bot ?
Thanks
Hi Mehmet,
Your flow would need to use one of the bot triggers to start it. And when a user sends a message to the bot that triggers the flow you will have access to the message that was sent.
We’ve got some Tutorials that you can check out if you need some tips and guidance for building bots and the flows used for them are shared so you can install them and get started straight away
What I want to do is access the conversation programmatically and send the data to my server in order to analyze my bot to improve it. I built the bot and it is working perfectly
I have a flow like that. Can I access whole conversation (the messages sent both by bot and my user) programmatically and send it to my server ? In that case above, I can just catch the messages sent by the user.
Thanks again
Hi Mehmet,
Your flow structure is spot on You’ve clearly got the hang of things.
The isn’t an output for the asked question because if it was fixed (typed in the task) then you would know what it was anyway and if you used an output from another task, you’d be able to use that same output.
So all you need to do is pass the question text or the same output used in the question along with the question’s answer, in your webhook data and you’ll have both the message sent by the bot and the reply from the user.
There’s one other thing you can do too. If you use a flow that has a catch-all trigger, you can capture every message sent to the bot that didn’t trigger a flow or answer a question and you can use these messages to better understand how users are interacting with your bot