> 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.md).

# Build your first agent

A step-by-step tutorial: build a small digital agent that greets the customer, answers questions with AI (optionally from your own knowledge base), says goodbye, and runs on your website.

In this tutorial you build a small digital agent from scratch, test it and put it on a web page. It takes about 30 minutes and needs no programming.

## What you will build

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-671852df6711452fe56353c1f261472913564d5a%2Ftutorial-overview-final-flow.png?alt=media" alt="The finished tutorial flow in the flow editor: START, MSG_WELCOME, ANS_MAIN with the GOODBYE intent to MSG_GOODBYE and END_DONE, the Fallback to AI_ASSISTANT that returns to ANS_MAIN, and END_HANGUP"><figcaption><p>The flow you will have at the end of the tutorial</p></figcaption></figure>

```
START → MSG_WELCOME → ANS_MAIN ─ "goodbye" ──→ MSG_GOODBYE → END_DONE
                         ↑   └─ anything else ─→ AI_ASSISTANT ─┐
                         └─────────────────────────────────────┘
```

* **MSG\_WELCOME** greets the customer.
* **ANS\_MAIN** waits for the customer's message. When the customer says goodbye, the agent says goodbye and ends. Everything else is a question for the AI.
* **AI\_ASSISTANT** answers the question with a language model and returns to **ANS\_MAIN** for the next question – so the customer can ask as many questions as they like.

## Before you start

* You can sign in to Digital Studio with the **Admin** or **User** role – see [Sign in](/getting-started/sign-in.md).
* Have a look at [User Interface Basics](/digital-agent/conversation-flow/user-interface-basics.md) to find your way in the flow editor.

## Steps

1. [Create the project](/digital-agent/building-new-projects/step-1-create-the-project.md)
2. [Welcome the customer and wait for a message](/digital-agent/building-new-projects/step-2-welcome-and-wait-for-a-message.md)
3. [Answer questions with AI](/digital-agent/building-new-projects/step-3-answer-questions-with-ai.md)
4. [Add your own knowledge (optional)](/digital-agent/building-new-projects/step-4-add-your-own-knowledge.md)
5. [Train and test](/digital-agent/building-new-projects/step-5-train-and-test.md)
6. [Put the agent on your website](/digital-agent/building-new-projects/step-6-put-the-agent-on-your-website.md)

{% hint style="info" %}
**The one rule to remember:** every node must lead somewhere. A node with an empty **Next** makes training fail. The steps below tell you which **Next** to fill in.
{% endhint %}
