브랜칭 조건 이해하기(레거시)



image avatar

Aimee Spanier

Zendesk Documentation Team

2025년 3월 19일에 편집됨


2

0

댓글 22개

Hello,

 

I have the same issue that 5104622711706 is describing, but unfortunately the solution from 5935813700634 doesn't work for me.

 

In my case, “booking_id” is a variable that may be set or not. 

 

When it's not defined, this condition always goes to the wrong side of the tree.

If I print the value afterwards,

 

 

I get the following message:

 

The current value of booking_id is "".

 

How can this be possible?

0


I plan to set custom fields or tags using the Core API:

 

zE("messenger:set", "conversationFields", [

  { id: "123456789", value: 100.50 }

])

 

How do I get the conversationField, or tag to show up in the conditions of the branch by condition?

For ticket fields, I only see email and name. 

Messaging Metadata shows only Provided name, Provided email, Authenticated external ID and Authenticated Status.

I know I can set variables using REST api calls to my server, but in this case it's all about what page of my web application the user is on, and/or some button they clicked on, which I need to ‘hard set’ to go to an Answer that is specific to that. 

 

Let's say I have a page of my site called “Playing in sandboxes” and they initiate their chat from this page.

 

I would 

zE("messenger:set", "conversationFields", [

  { id: "123456789", value: sandboxes }

])

And then I would have an answer set as my default_open which would have as the first step a branch by condition which would check for this Ticket Field. If it was “sandboxes” I'm going to route to the answer where the first Send Message says: Hey I see you are playing in the sandbox! Great! Do you have a question for yourself, or your kid? 

I don't want to have every interaction with the chat start with “how can I help you” when throughout my app there are pages where.. if the chat is initiated from that page there is a 99% chance I don't need to ask them how I can help. 

 

The specific use case is more like a - click this button to connect to a Sandbox Expert… then the chat bot will load a form which gathers some pre-conversation questions.. then transfers to a live agent. 

 

How do I do this?

0


5935813700634 Thank you, it's working now !

0


5104622711706 It's possible

1


Is it planned to add a condition for an empty/ not empty variable? Thanks :)

2


Thanks for the development on the Zendesk bot so far, it's really nice.

Is it not possible to compare two variables? It is so limited that we have to enter the values to compare with variables manually, what if we want users to make a selection and compare it with the values obtained via API call which is stored in a variable?

0


Looking for some assistance here please. I'm looking to use this feature to validate customer information by comparing two variables.

 

Email = provided by the customer through ‘ask for details’

customeremail = retrieved through a prior API call and stored as a variable 

 

Is this possible? Or perhaps there's a different way to compare info collected with known information stored from API responses?

1


You can only nest conditions up to three levels deep. Each level, including the top level, can contain up to six conditions.

We would like this limit to be increased. For example, we have 10 transaction types and need a condition for each, with this limit (maximum 6) we can't create a proper custom flow 

0


Hi Jhamine, 

We do offer Answer Bot analytics in Explore but are limited to the following: Analyzing your Flow Builder activity. Hope this helps!

0


I have recently implemented adding conditions to my flow using a dropdown option. Is there a way for the chatbot analytics to capture the choices I added in the dropdown fields? Additionally, how can I track those interactions that did not result in a handover?

0


로그인하세요.