Calling Attributes from another Flow

(JI) #1

Good morning

I need help to figure out how to call attributes from one flow into a 2nd flow. Here’s what my flows look like

Flow A

  • User just made a booking in Flow A which stored and used Attribute X
  • Bot asked if user wants to go to Flow B
  • User answered yes
    Flow B triggered
    Issue
  • Flow B needs to fetch Attribute X from Flow A and skip question which would have stored the same attribute

Any ideas?

(Daniel Beckett) #2

Hi @jerryiversen

Attributes are stored against a user’s response path and so should be available again in Flow B. You can get the attribute from the trigger of the flow.

If you want to skip over certain parts of Flow B if the attribute is already set then you can use the Flow service to set a Label and GoTo Label with a filter set for the attribute equalling a certain value or being not empty.

(JI) #3

Thanks @DanielBeckett

No problem jumping from Trigger in Flow A to a desired Interaction in Flow B. This works really well for me. However, I have not been able to achieve success using Attribute X (which I set and used several times in Flow A) in Flow B. Flow B is only returning the raw attribute-name. I’m not sure what I could be doing wrong.

(Daniel Beckett) #4

@jerryiversen

Could I see an example of the Attribute being set in Flow A and the Attribute being used in Flow B? :slight_smile:

(JI) #5

Sure, here are 2 annotated screenshots from Flow A and 1 from Flow B

Thanks

(Daniel Beckett) #6

You can’t link to an answer to a question from a previous flow and instead need to use the attribute value that you set. This can either be done by using a Get Attribute action or pulled from the trigger in the new flow. If using the trigger the format will look something like:

{{triggername.attributes__destination}}