Understanding Structure {{ __

(Samson Taylor) #1

*example: {{learn_more.response_path}}
“Learn more” is the triggered flow and the start of my flow

Can you please explain to me better:

**what is linked together via periods ( . )

and

**what is linked together by __

I can’t remember where I read. and __ gave you the ability to select a sub-set …within a sub-set?

I guess by understanding the questions above, understanding what comes first or second in order makes more sense?
( A. {{learn_more.response_path}} or B. {{response_path.learn_more) }} ) Why is it A?

I’m just having a hard time understand after selecting what I want to target, from the trigger or an action, I’m unsure of how to write the structure properly or understand when to add structures together.

Almost grasping the concept… lol

(Karen Barker) #2

Hi Samson,

If you click on the Flow XO icon on the right hand side of an input box then this will actually allow you to choose the structure automatically therefore eleviating the need to construct the structure yourself.

However:

  • . is used to join the task name to the value you are wanting to use associated with that task.
  • __ is used to name a specific object within the value

So for example you could type {{TriggerName.response_path}} to return the response path of the conversation. However if you typed {{TriggerName.attributes}} this wouldn’t return any value as you haven’t specified the particular attribute required. To reference the specific attribute required you would use {{TriggerName.attributes__AttributeName}}

So in all instances you reference first the Name of the task and second the value required from the task and these are connected using the . notation. If the value has multiple options for it such as in the case of attributes you would then use the double underscore __ notation followed by the name of the specific value you require.

Hopefully this makes more sense. The easiest way is to just use the Flow XO icon though to select what you require and the UI will fill it in automatically for you. :slight_smile:

2 Likes
(Samson Taylor) #3

Karen I hope you’re sitting down for this one. Got a drink with you? Maybe some snacks? I’d suggest a pillow for some lumbar support, schedule a coffee break.

Here goes, (Pre-P.S. your probably going to solve this in 2 lines of code. smh) Let me down easy.

If you click on the Flow XO icon on the right hand side of an input box then this will actually allow you to choose the structure automatically therefore eleviating the need to construct the structure yourself.

By selecting the icon will that show me all the things i can possible target? I’m asking that to understand if there is a reason to {{, if the icon will give you ever option that is mechanically avaliable. If that is the case, the problem I have below is interesting because when pressing the icon you’re presented with nothing related to the action I’m looking to target as a filter.

However:

  • . is used to join the task name to the value you are wanting to use associated with that task.
  • __ is used to name a specific object within the value

Can I target just a task name or value or object? I’m assuming maybe if you can, only the task name would be possible to target alone? I’m trying to see if there is a structural rule here where a certain method must always be followed to get to a taskname, value or object. I’ve tied to target in the issue below but i can’t seem to get it working.

Can I trigger a filter based off of another filter?

I’m having a hard time understanding what I need to target in the 2nd filter to trigger if the first trigger pops.

I have this “setup” where if the Free CBD PDF Opener (Which is a message addressing a shortcut) filter is triggered, the message inside will be sent to the customer. The “What’s your email?” question has a filter that only pops if the trigger before it (free pdf) pops as well.

I’ve check the logs and the “free pdf” message returns information under a settings tab and filter tab.
What information should I source from the “free pdf” message to use in the "what’s your email filter? I can’t seem to target the “pdf” action at all.

Pics below

Here are the two actions:

(Samson Taylor) #4

The message inside “Free CBD PDF opener”

(Samson Taylor) #5

The filter on “Free CBD PDF opener”

(Samson Taylor) #6

The “What’s your email” action

(Samson Taylor) #7

The filter on “What’s your email?”
I’ve changed those values a million times, the ones there now are pure desperation. I had “free cbd pdf” as the equals to value and still the trigger didn’t work.

I’ve tried freecbdpdfopener.message in the top value.

(Samson Taylor) #8

Here is the log:

(Samson Taylor) #9

here is the Free CBD PDF Opener Log with settings tab opened up.

What am I doing wrong? I’m starting to understand the info you provided but I can’t seem to target the action, Free CBD PDF Opener

(Karen Barker) #10

Hi Samson,

I have my :coffee: so here goes :grin:

If you always want the email question to be asked if the “Free CBD PDF opener” action has run then you’ll need to add exactly the same filters to the question action as for the “Free CBD PDF opener” action. So in this instance it looks like {{cbd_intro_questions.choice}} equals free cbd pdf.

To answer your question re the Flow XO icon though - yes all possible outcomes that you can target will be displayed here, so it really is the easiest place to go and look what you can actually use. :slight_smile:

(Samson Taylor) #11

You disappoint me Karen, I had faith you could answer that in one sentence lol. Thank you for clarifying.

So let me wrap my head around this because I made another flow and still having an issue. It’s just concept for me, promise I’m not normally this slow.

I guess what I need to now clarify is…"Send Message"s don’t output anything (even when there is a Shortcut?) so there isn’t anything for the filter following in sequence to trigger from off of that Send Message. That right?

So I would then basically need to target the next action or trigger in line ahead of that “Send Message” that gives output and that would also qualify to pop the filter I’ve been attempting to trigger. Is this right?

I keep coming to this issue because I’ll setup scenarios where:

After a flow trigger or catch all trigger pops. I send a “Send Message”, “Nice to hear from you” (SHORTCUTS buy, sell, trade)

The next thought is to make a "Send Message"s for each of those Shortcuts. So i “thought” when I make the “Send Message” to address the (buy) shortcut (Awesome you want to buy), when the customer hits buy button in the first message with the shortcut list, there surely must be an output that shows they selected buy. Then I could make a filter on the “Send Message” buy reply that targets the output buy in the original message with the shortcut list.

But this is not the case.

Ok, so where did I lose you? lol

So to sum it up,

I’m lost when I read the logs. I understand I can target anything that is an output but when I’m looking at all these “send” replies “Send Message, Send Card, Send Cards, Send Image”, none of them have outputs just settings (information contained inside…right?)

I can’t target anything that doesn’t have an output…?
At the end of the day, I’m trying to create flows inside of the main flow so I don’t have to use up my main flow usage, I only have 5 bot/flow. But to have multiple flows inside of a flow that only triggers in a promted sequence need filters, which I’m struggling with lol.

(Samson Taylor) #12

I would think a Send Message that had shortcuts would have a “settings and output” in the logs. Maybe a settings action then the next sequence is the same action but shows “output” because the buy button was mashed.

This is just how my thought process thinks the coding works but this is clearly not correct.

(John Jackson) #13

Hey Samson! :smiley: The shortcuts on ‘send a message’ only simulate a trigger when the button is pressed. So you would only use these on a message at the end of a flow. You then make sure you have trigger(s) for each of the buttons the user might press.

I think what you need to do (wait for the user to hit one of the options, and then proceed with the flow knowing what they selected), then ‘Ask a Question’ using a ‘Choice’ question type will do this.

We should (and will) make this clearer in the future.

1 Like
(Samson Taylor) #14

Thanks for all the help man. A lot of dumb questions I know, I’ll be one of your pros soon enough lol.

PS. more questions to come, 1000% positive.

1 Like
(Samson Taylor) #15

So the ability to make back to back (to back and so forth) statements, as if you were typing and hitting enter after each sentence, is not possible in the same flow with a “normal” pause to text feedback?

What I mean by paused feedback:

Hey John thank's for visiting the Hobbit Shop in Direwood [enter] "new send_a_message"

***natural*** "typing....." 2 - 3 second pause then

Today we have a wide variety of delicious countryside shrooms for you to sample, just came in from the Shire." [enter] "new send _a_message"

Rinse repeat with the pause and so on.

I’m noticing if I do multiple “send a message” statements, it comes out in rapid succession and sometimes out of order.

The example above was a small one, but why I"m trying to understand if I can send multiple back to back “send a message” statements, is because I’m trying to avoid sending to much info in one message.

I know I can just hit enter and make a new line/start a new sentence right there in the original message, but I’m looking to avoid large blocks of text. I think the appearance of seeing a large body of text is taken in better and ppl are more willing to read if things are broken up.

So in a “send a message” that has 12 sentences, I would naturally like to break that up into 2 to 3 send messages that would reply in succession of one another with a gentle pause in between.

Maybe this can be a drag and drop feature. Drag the pause action between to other actions and or trigger/action, then select the amount of time to “typing” for

PS.S. this entire Flow XO system is dying for a drag and drop interface. I know all of you catch yourself wanting to drag and element here or there. That should be a nice little focus IMO, opens up the builder adoption and makes the build process more visaul and time effective.

(Karen Barker) #16

Hey Samson,

Sorry for disappointing earlier - I’ll try harder this time!!! :sweat:

To add a delay between sending messages you need to use the wait service.

If you use the Wait Until a Date option you can add a time delay e.g. 3s to add a delay between messages.

With regards to the drag and drop feature, this is coming soon. We have an item on the roadmap here to make some changes to the UI and drag and drop is one of these. :slight_smile:

2 Likes