> 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/knowledge-base-project/step-2.-integrating-ai-node.md).

# Step 2. - Integrating AI Node

With the initial setup complete, the next stride involves incorporating a [Generative AI intent recognition](/for-advanced-users/intent-recognition-tips/fine-tuning-intent-recognition-using-generative-ai.md). This addition enriches customer interactions by enabling recognition of greetings or conversation conclusions, thus enhancing user experience with responsive engagement.

**Defining Fallbacks**

A fallback mechanism is crucial when specific intents are unrecognizable. In such cases, the interaction defaults to a ['AI' node](/digital-agent/conversation-flow/nodes-explained/ai-node.md), ensuring the customer receives pertinent responses to their inquiries.

<figure><img src="/files/pTCIWnSKn0LX1OXMt6iA" alt=""><figcaption><p>Step 2: - Adding the intent and AI node</p></figcaption></figure>

<details>

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

1. **Access an 'Answer' Node**: Initiate by selecting an existing 'Answer' node.
2. **Generate a New Intent**: Employ Generative AI intent recognition to create a 'goodbye' intent.
3. **Establish a Fallback**: Set up a fallback 'AI' node for unrecognizable queries.
4. **Create an 'END' Node**: Designate this as the target for the 'goodbye' intent.
5. **Configure the 'AI' Node**: Tailor the system message to meet your requirements.
6. **Incorporate a Follow-Up 'Message' Node**: Position this after the 'AI' node to query additional customer questions.
7. **Link for Continuous Interaction**: Connect this 'Message' node back to the 'Answer' node, enabling an infinite interaction loop.

</details>

**Implementing AI Node**

An[ 'AI' node](/digital-agent/conversation-flow/nodes-explained/ai-node.md) is established with a predefined system message (for details, refer to the [linked resources](/digital-agent/conversation-flow/nodes-explained/ai-node.md)). Post-response, a subsequent ['Message' node](/digital-agent/conversation-flow/nodes-explained/message-node.md) inquires if the customer has further questions, linking back to the 'ANS\_ask' node to foster a continuous dialogue loop. This structure is pivotal for crafting a seamless ask-and-answer loop within the virtual assistant, laying the groundwork for our [Conversation Flow builder](/digital-agent/introduction.md).

**Proceeding to Further Development**

As this step lays the foundational AI integration, it's crucial to progress to [STEP 3 - Training and Testing Your Project](/digital-agent/building-new-projects/knowledge-base-project/step-3.-finalizing-with-testing-and-training.md), to refine and validate the system's functionality.
