# Acciones del Agente

#### **Añadir Acciones**

Para añadir una nueva Acción, dentro de "Configuración" desplázate a la sección “Acciones del Agente” y haz click en “+ Add New Action”,

<figure><img src="/files/U4JDhJBw0lN8k2pOADxa" alt="" width="223"><figcaption></figcaption></figure>

\
Aquí tienes dos tipos de herramientas:

* **API:** Integrar con otro webhook/endpoint
* **Agent Transfer:** Transferir conversación a otro agente

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

Te vamos a explicar una por una:

#### 1. Tipo API:

Este tipo de acción permite conectar con otras herramientas por medio de API

* **Nombre:** Dale un nombre a tu “Acción”
* **HTTP de la API:** Elige el método, puedes revisar los métodos HTTP [AQUI](https://blog.postman.com/what-are-http-methods/)
* **URL de la API:** Pega aqui la URL, esta URL ayuda a conectar el API con el recurso que está solicitando
* **Instrucciones Importantes:** Describe las instrucciones que debe hacer esta acción, siendo muy claro, especifico, con escenarios y ejemplos de las acciones que realizará el agente.

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

* **Parámetros** (Opcional)\
  Dapta brinda la opción de añadir parámetros a tu Acción, para añadir un parámetro sólo debes hacer click en “+ Add Parameter”, colocar nombre de parámetro y las instrucciones respectivas del parámetro.

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

\
para eliminar el parámetro presiona el ícono de trash “🗑️” a la derecha de cada parámetro añadido

* Para terminar de añadir la Acción, haz click en el botón: “Create Action"

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

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

Esta acción permite transferir la conversación a uno o varios agentes humanos según las instrucciones que le brindes al agente.

* **Nombre:** Dale un nombre a tu “Acción”. Por defecto el nombre es request\_human\_agent
* **Instrucciones Importantes:** Describe las instrucciones que debe hacer esta acción, siendo muy claro, especifico, con escenarios y ejemplos de las acciones que realizará el agente.

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

* **Transferir a Equipos:** Puedes crear equipos de agentes humanos que tomen la conversación, según las instrucciones que hayas colocado previamente.

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

Para crear un equipo, dale click a "+ Create New"

<figure><img src="/files/ZSHJhjkIofqSfzf2gpsr" alt="" width="116"><figcaption></figcaption></figure>

Dale un nombre al equipo, y dale click en "Create"

<figure><img src="/files/snAiJW6iTX3ti2yFg7uE" alt="" width="302"><figcaption></figcaption></figure>

Luego busca los miembros de tu workspace y añádelos con el botón "+ Add member"

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

Podrás ver los miembros en medida que vayas añadiendo

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

Seleccione los que desea agregar y haga clic en Guardar.

<figure><img src="/files/0x4LFs0FXU23nYRLAuiU" alt=""><figcaption></figcaption></figure>

La acción que acaba de crear ahora aparece en la sección Acciones del agente


---

# 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/dapta-docs-es/agentes-de-texto/acciones-del-agente.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.
