# Step 4. - Managing Flow Scenarios

In this tutorial, we'll create a straightforward answer node equipped with two intents, presented as selectable options via buttons:

* **YES:** Represents a positive response; the customer seeks additional information or has another query.
* **NO:** Indicates the call will conclude immediately.

<figure><img src="https://content.gitbook.com/content/6iQTvxgRZRwPS1NgIGEb/blobs/SrNnltf6B7S6EG8ushwd/BD_4x_answer_logici.gif" alt=""><figcaption><p>Step 4. - Managing Flow Scenarios</p></figcaption></figure>

While using keywords is helpful, leveraging generative AI based on meaning can often yield better outcomes and simplify processes.

<details>

<summary>Step-by-step guide:</summary>

1. Create a simple ***'Answer' node*** following the 'Help' message node.
2. Generate a *"YES"* intent using generative AI and assign it as the primary chat button.
3. Develop a "NO" intent using keywords (for demonstration purposes only; you can utilize *Generative AI* instead).
4. Designate the *"NO"* intent as the secondary chat button.

</details>

{% hint style="warning" %}
The sequence of intents, variables, and entities within nodes is critical. Visualize this as an SQL case function where the system progresses through ordered parameters until no matches are met. This functions as a fallback action or, in SQL terms, an "else" statement.
{% endhint %}

{% hint style="info" %}
Determine the priority flow by assigning primary colors to intents for primary objectives and secondary colors for alternate objectives.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.borndigital.ai/digital-agent/building-new-projects/advanced-project/step-4.-managing-flow-scenarios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
