> For the complete documentation index, see [llms.txt](https://docs.borndigital.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.borndigital.ai/digital-agent/building-new-projects/advanced-project/step-5.-finalizing-the-project.md).

# Step 5. - Finalizing the Project

Let's establish a simple TRUE/FALSE logic based on the customer's response to showcase a basic logic example in your application:

* "YES" intent loops back to the generative AI node.
* "NO" intent leads to ending the conversation.

{% hint style="warning" %}
Make sure you have properly setup the hangup (when the user is still on the call) and fallback (backing scenario)
{% endhint %}

<figure><img src="/files/bBnUZspOP2E3JW4cj1rz" alt=""><figcaption><p>Step 5. - Finalizing the Project</p></figcaption></figure>

<details>

<summary>Step by step</summary>

1. Create an ending node for the "NO" intent.
2. Generate a new message node, "Please write your answer below," connected to the generative AI node for the "YES" intent.
3. Connect the "Fallback" to the newly created message node.
4. For "Hangup," immediately end the call.

</details>

{% hint style="info" %}
You can create an infinite loop by arranging 'yes/no' questions to return to the same node (avoiding the call end).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.borndigital.ai/digital-agent/building-new-projects/advanced-project/step-5.-finalizing-the-project.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
