# Text Agent Actions

### Add Actions

<figure><img src="/files/c7xSBqZjEzqjI6ilSXvK" alt="" width="563"><figcaption></figcaption></figure>

To add a new Action, go to "Settings, scroll down to the “Agent Actions” section, and click on **“+ Add New Action”.**

<figure><img src="/files/0eQIcl8BIEgLZyOSkw4D" alt="" width="375"><figcaption></figcaption></figure>

Here, you could select two types of tools:

* **API: I**ntegrate with another webhook/endpoint.
* **Agent Transfer:** Transfer the conversation to another agent.

<figure><img src="/files/WpefkZuKBIreFwV57wxt" alt="" width="563"><figcaption></figcaption></figure>

Let’s break them down one by one:

#### **1. API**

This type of action allows you to connect with other tools via API.

* **Name**: Give your “Action” a Name.
* **HTTP Method:** Choose the method; you can review HTTP methods [HERE.](https://blog.postman.com/what-are-http-methods/)
* **API URL:** Paste the URL here. This URL helps connect the API with the resource being requested.
* **Important Instructions:** Describe the instructions this action should perform. Be very clear and specific, including scenarios and examples of the actions the agent will carry out.
* **Parameters (Opctional):** Dapta gives you the option to add parameters to your Action.

<figure><img src="/files/axesQbkj0Pm5cn249ziM" alt="" width="375"><figcaption></figcaption></figure>

* To add a parameter, simply click on “+ Add Parameter”, enter the parameter name, and provide the respective instructions for that parameter.

<figure><img src="/files/O4YrPXGYlCnXixim0Ia9" alt="" width="375"><figcaption></figcaption></figure>

* To delete a parameter, press the trash icon “🗑️” to the right of each added parameter.
* To Finish adding the Action, click the button: “Create Action".

<figure><img src="/files/nxrSN5DbsmvUjXKTocNL" alt="" width="127"><figcaption></figcaption></figure>

#### **2. Agent Transfer**

<figure><img src="/files/r0ZmnEivHQKwBJv7NN4s" alt="" width="563"><figcaption></figcaption></figure>

This action allows the conversation to be transferred to one or more human agents based on the instructions provided to the agent.

* **Action Name:** Give your “Action” a name. By default, the name is `request_human_agent`.
* **Important Instruccions:** Describe the instructions this action should perform. Be very clear and specific, including scenarios and examples of the actions the agent will carry out.
* **Transferir Teams:** You can create teams of human agents to take over the conversation based on the instructions you previously set.

<figure><img src="/files/BcvZUxQvtHaRBpPXL3kq" alt="" width="563"><figcaption></figcaption></figure>

To create a team:

1. Click on "+ Create New".\ <br>

   <figure><img src="/files/fWuOFPPI5WBRfJNslBxr" alt="" width="116"><figcaption></figcaption></figure>
2. Give the team a name and click "Create".

<figure><img src="/files/ORE0UhwyeSjgvmpLsDEq" alt="" width="563"><figcaption></figcaption></figure>

3. Search for members of your workspace and add them using the "+ Add member" button.\ <br>

   <figure><img src="/files/W5n7L0xfpxjlsh8pxwHt" alt="" width="375"><figcaption></figcaption></figure>
4. You will see the members appear as you add them.<br>

   <figure><img src="/files/421dU3OkzbG65FUjZzSR" alt="" width="563"><figcaption></figcaption></figure>
5. Select the ones you want to add and click Save.

<figure><img src="/files/nsrLL9assEIzPVxsgfBS" alt="" width="563"><figcaption></figcaption></figure>

6. The Action you just created now appears in the Agent Actions section


---

# Agent Instructions: 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:

```
GET https://docs.dapta.ai/ai-text-agents/setting-up-your-text-agent/text-agent-actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
