Bot messages a user after backend feedback

(Mclare) #1

Hi guys, i really love this platform, its fantastic how much can be done in a short period of time. I am currently developing a proof of concept for my company and i have the following dilemma:
A user communicates with my bot, initiating a transaction. This transaction is processed in the backend and completes at a different point in time, as it may involve a manual step. I cannot find a way to contact a specific user based on a backend event. I know webhooks enable me to access a flow and provide information to it, but i dont know how to go from there to relay the information to a specific user. I have the user ID.
I would really appreciate some insights.

Kind regards
Leon

(Ryan McGuinness) #2

Hi Leon,

To my understanding you are webhooking out to an external service but are not continuing in the same flow so you are loosing the ability to reply there.

Well, that’s easily solved :slight_smile: all you need to do is take the response path along with you or store it in an attribute using your transaction ID so that you can get the stored attribute when you trigger a new flow using the receive a webhook action.

To populate the response path on a new message when you return from the external service, you just need to use the pencil icon towards the right side of the dropdown then you can select an output instead. (See image below)

Hope this helps! :slight_smile:

2 Likes
(Mclare) #3

Dear Ryan,

apologies for the late reply. That is absolutely perfect. The ResponsePath is my missing link :wink:
This is very elegant. Thanks and kind regards

Leon