> 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/step-3-answer-questions-with-ai.md).

# Step 3 – Answer questions with AI

Add an AI node that answers every other message and returns to the Answer node, so the customer can keep asking.

Every message that is not a goodbye goes to the AI node. The AI node answers and the conversation returns to **ANS\_MAIN** to wait for the next question.

## Add the AI node

1. Open **ANS\_MAIN** and go to the **Fallback** tab.
2. Click the **Next** field at the bottom of the tab and choose **AI** (the blue hexagon) under **Create a new node**.

   The fallback is used when no intent matches. With the default settings, an unmatched message goes straight to its **Next** – here, to the AI.
3. Studio opens the new AI node right away. Name it `ASSISTANT` – it becomes `AI_ASSISTANT`.

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-812fa14403d0a77e8847196c70d0a2db317f6698%2Ftutorial-step3-fallback-to-ai.png?alt=media" alt="The Fallback tab of ANS_MAIN with its Next field open and the AI icon highlighted under Create a new node"><figcaption><p>The fallback leads to a new AI node</p></figcaption></figure>

## Tell the AI what to do

In the **Essential** tab, replace the text in **Behaviour** › **Instructions** (by default *Be brief in your answers.*) with instructions for the model, for example:

```
You are the friendly digital assistant of our company.
Answer the customer's question briefly, in two or three sentences.
If you don't know the answer, say so honestly – never make up facts.
Always answer in the language of the customer.
```

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-9824fa4aa36c34f86b6f6e256f4aa7d1c882f567%2Ftutorial-step3-ai-behaviour.png?alt=media" alt="The Essential tab of AI_ASSISTANT with the four-line instructions in Behaviour, Instructions"><figcaption><p>Instructions for the model in Behaviour</p></figcaption></figure>

Keep the preselected provider and model in the **Configuration** tab. They are the defaults chosen for your environment.

## Return to the Answer node

At the bottom of the AI node, set **Next** to **ANS\_MAIN**. After answering, the conversation goes back to the Answer node and waits for the customer's next message.

{% hint style="warning" %}
The AI node does not wait for the customer by itself – it answers and moves to **Next** right away. To have a conversation, always lead it back to an Answer node.
{% endhint %}

Close the node and click **Save** in the bottom bar. Your flow is complete:

```
START → MSG_WELCOME → ANS_MAIN ─ GOODBYE ─→ MSG_GOODBYE → END_DONE
                         ↑   └─ Fallback ─→ AI_ASSISTANT ─┐
                         └────────────────────────────────┘
```

Learn more: [AI node](/digital-agent/conversation-flow/nodes-explained/ai-node.md), [Essential tab](/digital-agent/conversation-flow/nodes-explained/ai-node/essential-tab.md).

Next: [Step 4 – Add your own knowledge (optional)](/digital-agent/building-new-projects/step-4-add-your-own-knowledge.md), or skip to [Step 5 – Train and test](/digital-agent/building-new-projects/step-5-train-and-test.md).
