# Facebook

La integración con Facebook Messenger permite que el bot creado sea responsable de toda la conversación iniciada en este canal. Sea un usuario iniciando sesión en su página de Facebook o chateando directamente a través de la aplicación Facebook Messenger.

El primer paso de la integración es hacer clic en el botón **Iniciar sesión con Facebook** Para que los cosmobots puedan acceder a tu página. Este acceso es necesario para que la página pueda configurarse para aceptar conversaciones con el bot creado en Cosmobots.

![](https://lh5.googleusercontent.com/zc76d3bQjnO5QJ4NusRdolnryqfCdsjybZYVZtbefG5yxwDDf_wF9X0r-Gprr0VhMv0i25I4BIZMApQIxS7Wkn26kO9wwQJtVigtAhsngMGcom9piExUG4gTGErnsou5JF1Zf81MpfZZInI7vA)

El segundo paso es elegir tu página de Facebook. Como puede tener varias páginas, el objetivo aquí es definir qué página será utilizada por el bot. Al confirmar este paso, el bot ya estará disponible para las conversaciones en tu Facebook. Si desea revocar este acceso, simplemente vuelva al paso anterior y haga clic en revocar.

![](https://lh4.googleusercontent.com/S4KhMVQomVsSnvlSl6NP_YEvYnkwNerBwAaen17nWBFRxzjQfojsIs8ZRkFLmyKYQkbqaEqtZvP8_yPYVKhkTjBdDM4OVk4pEeuY5ywp4MYD8FZE3h1LvGX131ungWbwjRgmjciGR82k9rZQhg)

El tercer paso es establecer un mensaje de bienvenida para cuando el usuario interactúa primero con su bot. Es decir, cuando hace clic en el botón **Empezar**.

![](https://lh6.googleusercontent.com/whqkBmVWRIWkFWNXu5nlKnI-dWhzP398tIhgrqtvvDDknPJENlkD_uPuLKmzGYkRM9TcXVkrcBoNdLzQQ1FuVto_jQ-s_hVj3yHD2kspLqd1PXVzTi3BRLX3GqVu5TLK6CfGtowMXhEbZFpd1A)

El cuarto paso es establecer un menú con opciones que siempre estarán disponibles para el usuario durante la conversación con bot. La idea es servir como un atajo para el usuario si quiere cambiar el tema de la conversación considerablemente.

![](https://lh5.googleusercontent.com/PNeqCfDxpZObkIA39pVEAA9hEhWQx8FvGmxHGfdFbfNJtKi4VY_WZ8GFJkwsSB54GHCbvFHMAOrNDrNcagtZU2NriVb_zpu5vRya3wY0e1swrOZbdk0mQOgjIVQtnwMt2eE2T8OzVcI0gBltlA)


---

# 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://help-es.cosmobots.io/bot-builder/canales/facebook.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.
