> For the complete documentation index, see [llms.txt](https://cs.help.siesta.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cs.help.siesta.cloud/en/main/portaly/stranky/facebook-chat.md).

# Facebook Chat

If you want to add Facebook chat to the page and give the customer the opportunity to contact you immediately a few steps are needed.

1. After logging into your Facebook account, select the page to which the chat is to be assigned. If you don’t have on, select manage pages and create a new one (see figure 1).
2. After opening the upper page interface, click on the settings in the top right, select messenger platform from the left menu, scroll down and add your portal address in the Domains added to whitelist field. For example, <https://shop-se-psy.com>.. Save. (see figure 2).
3. Scroll down on the same page and click on set in the customer chat plugin section (see figure 3.).
4. You will go through the interactive chat settings that will be displayed. (colours, auto greetings, etc.).
5. In the last step add the domain of your portal, in the right side of the window (javascript code) scroll all the way down and write down the code between quotation marks page\_id = “THIS\_RESWITCH” (see figure 4.).
6. Now login to the admin environment admin.siesta.cloud, select the detail of the portal, the bookmark of the page, the detail of the age where you want to display the Facebook chat, and on the detail of the page click on the settings. Here, turn on Facebook chat and enter your page\_id code (see figure 5.).

![obr 1. Otevření stránky](/files/-LqpWpz3_IzzyBPJGEJO)

![Obr 2. Nastavení stránky](/files/-LqpXg2R6JvtW2izOznF)

![Obr 3.](/files/-Lqp_5TD8AwnNc_8gpwp)

![Obr 4.](/files/-LqpalN32Q1uGnHvnfVk)

![Obr 5.](/files/-LqpcpWIUE5nFN0OUED_)


---

# 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://cs.help.siesta.cloud/en/main/portaly/stranky/facebook-chat.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.
