> For the complete documentation index, see [llms.txt](https://docs.1millionbot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.1millionbot.com/es/chatbot/channels/twitter.md).

# Twitter

## Configuración

Para configurar la integración de tu asistente en Twitter, necesitarás lo siguiente:

* Una cuenta de Twitter vinculada a un número de teléfono.

### Crear una aplicación de Twitter

1. Accede a la [consola para desarrolladores de Twitter](https://developer.twitter.com).
2. Haz clic en 'Sign Up' para registrarte como desarrollador. Introduce la información que se te solicita.
3. A continuación accede al proyecto creado dentro de la sección **Projects & Apps**, por defecto se te creará con el nombre 'Project 1'.&#x20;
4. En el módulo **Apps** haz clic en el botón 'App settings'.\
   ![](/files/15MV2pqRUWglYJRc2ivd)
5. Configura la opciones de autenticación en el apartado **User authentication settings**.\
   ![](https://lh3.googleusercontent.com/r67AagfxgUgkOjOeZoulgAZqnaWAsbnrr1-SXG74ZV-nGEGgaDOFZlJtco2Lrhsqr4vF1GwPSPPgGeQXafvaNHz57ZcCSwKuJ_1A2oPHtsgvwj-bbIvjPsbf3EcgZ5y9Czl1_lKMJNan18VDL_V-tA)
6. Activa Oauth 1.0a y selecciona 'Read and write Direct Message' (Leer y escribir Mensajes Directos).
7. Copia la URL que encontrarás en las opciones de integración y pégala en 'Callback URI/Redirect URL'.\
   ![](/files/q4gqHLVhbAjObnjL1ZJx)
8. Introduce tu sitio web y guarda los cambios.\
   ![](/files/YHQZmgCDpe0rGtKunTLT)
9. Accede de nuevo al proyecto creado dentro de la sección **Projects & Apps** y en el apartado **Apps** haz clic en el botón 'Keys & tokens'.\
   ![](/files/O37Uwq7IiIlgxOFJl5ZZ)
10. Genera los token 'Api Key and Secret' y 'Access Token and Secret'. Copia cada uno de ellos para usarlos posteriormente en la integración.\
    ![](/files/tY0MsdP3qzOoHVghgJyO)

### Configurar permisos&#x20;

Es necesario solicitar permisos superiores para establecer un entorno de desarrollo.

1. Accede a la página principal del proyecto y haz clic en 'Apply' que aparece tras la pregunta 'Do you need Elevated access for your Project?'.\
   ![](/files/0etquS2vKkFe5k2tV74r)
2. En el formulario se te solicitará una descripción detallada (200 caracteres) de para qué se utilizará el API. Por ejemplo:\
   "*The access to the API will be used to activate the webhook that connects a chatbot with the direct messages of the Twitter account. When a user sends a question as a direct message, they will receive an automatic response that resolves their question."*
3. En el formulario activa la opción de la pregunta 'Will your App use Tweet, Retweet, Like, Follow or Direct Message functionality?' y describe: \
   "*When a user sends a question as a direct message, they will receive an automatic response that resolves their question."*
4. Envía la solicitud.
5. Tras la aprobación accede a la sección del menú **Products** > **Premium** > **Dev** **Environments**.&#x20;
6. Activa la opción 'Account Activity API'.&#x20;
7. Introduce un nombre en 'Dev environment label' (copia este nombre para usarlo posteriormente en la integración) y vincúlalo a la App que creaste inicialmente.

{% hint style="info" %}
**Importante:** Es posible que tu solicitud sea aprobada automáticamente o debas esperar un tiempo.
{% endhint %}

### Activar integración

1. En el módulo de integración de Twitter introduce todos los datos que copiaste anteriormente.\
   ![](/files/ZAwzDVU33va9cLny4cup)
2. Guarda la configuración.
3. ¡Listo!:tada: Realiza pruebas para verificar el funcionamiento de tu asistente en Twitter.&#x20;

## Limitaciones

* Máximo 1000 mensajes al día.
* Cada mensaje recibido de un usuario puede tener como máximo 5 respuestas del bot (Al recibir otro nuevo mensaje del usuario se pueden enviar otros 5 mensajes).
* El máximo de caracteres por mensaje es de 10.000.
* Máximo 20 botones de texto en cada mensaje.
* El máximo de caracteres del texto del botón es de 36.


---

# 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.1millionbot.com/es/chatbot/channels/twitter.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.
