> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/product-guides/text-agents-legacy/how-to-create-your-first-text-agent.md).

# How to create your first text Agent

{% embed url="<https://www.loom.com/share/597b943fda404258ae329bef77d662b9?sid=ac650899-9392-40d5-b91d-64457c0db5a4>" %}

### Step-by-Step Guide

#### 1. Navigate to Your Text Agent or Create a New One

* In the left sidebar, click on **Text Agents**.
* Create a new agent

<figure><img src="/files/dJRH3aHgRCcGVqBKsPVw" alt=""><figcaption></figcaption></figure>

#### 2. Build Your First Prompt

* Select the purpose of your agent.​
* Modify your agent's prompt template. You can find more information on how to structure a good prompt [here](/ai-voice-agents/how-to-set-up-your-ai-voice-agent/prompt-guide.md)

<figure><img src="/files/Fy88fO9NlmUWV5eDIEKc" alt=""><figcaption></figcaption></figure>

#### 3. Add Your Business Information

* Add your business information so the AI can be trained with it.
* You can add URLs or upload files directly!

<figure><img src="/files/7cl5XVplGB5I0vp1KRtb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/g8rLNr7DZOvQpTPWXUDM" alt=""><figcaption></figcaption></figure>


---

# 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.dapta.ai/product-guides/text-agents-legacy/how-to-create-your-first-text-agent.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.
