How to pass attributes and response path betwween bots sharing common flows?

(Prakhar Monga) #1

i have 3 bots , botA, botB and botC. the starting flow is different for each bot for example flowA>botA,
flowB>botB, flowC>botC but after that there is a common flow shared by all bots.
how can i track attributes which i set up in seprate as well as common flows and how to tackle
with response path?
how to set response path between various flows?
how to broadcast when a certain attribute has been set or changed in a flow(shared as well as common)?

(Daniel Beckett) #2

Hi @Prakhar_Monga

Out of interest, why are three different bots being used? Are they all on the same messaging platform - i.e. Facebook Messenger or Web Messenger?

If the user is staying on the same bot across all flows then any attributes you set will save against their response path which won’t change when moving between the flows.

When your broadcast those attributes will also be available as it depends on the bot that’s being used for the broadcast.

(Prakhar Monga) #3

my three bots are connected to three different fb pages. In the first flow which is different for each bot i want to set some attributes and get user’s fb psid , from there i want them share a common flow so that i can save money by not having extra flows. In common flow i also want to save attributes so that i can broadcast later.
How to take care of response path,attributes,psid so that i can broadcast to right people .
for example in the common flow i want to capture user data and set an attribute, how would i know that the user came from which bot from first flow?

(Karen Barker) #4

Hi Prakhar,

There’s no problem using the same flows across multiple bots the later flows just needs to be set up to listen to the 3 bots.

Each user on each bot will have a unique response path and any attributes set on the response path will remain available no matter which flow the user is in and new attributes will still save on the users response path.

Within a flow trigger we pass details of the bot the user is on. You could name these something specific to the page the bot is linked to and this will also be usable in the later flows. The users bot will never change even though they are using flows which are common across multiple bots. :slight_smile:

(Prakhar Monga) #5

I am triggering a flow as soon as a certain attribute is being set,
in the second flow where trigger is attribute set or updated, when i add an action like ask a question
it has a response path field which is mandatory what should i use in this field?
is {{attribute_updated.attributes}} the right choice?

(Karen Barker) #6

Hi,

When you use the attribute updated trigger we pass the response path that the attribute was on across to the trigger of that flow. Therefore in the Response Path field you can use {{attribute_updated.response_path}} to send a message to the user. :slight_smile: