> For the complete documentation index, see [llms.txt](https://docs.ushahidi.com/platform-developer-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ushahidi.com/platform-developer-documentation/dev-legacy-v3/the-ushahidi-platform-facebook-bot/the-facebook-bot/the-bot-script.md).

# The bot script

If you feel adventurous you can go to the file [database/seeds/**AnswersTableSeeder.php**](https://github.com/ushahidi/platform-facebook-bot/blob/master/database/seeds/AnswersTableSeeder.php) **before** running the database seeds and migrations and change the wording of the questions. Please note, removing questions might cause the bot to break. You can change the wording of the questions, but not removing them.

## The script

**When the user start talking to the bot:**

* Hello! Welcome to {TITLE}
* {NAME}  is creating an open‐source resilience platform help communities reconnect, respond to, and recover from crisis situations.
* Help us test the platform by sending us a report!
* \[Send a report ] ← this is a button the user can click on

**When the user clicks “Send a report”:**

* In a few words, describe what you would like to report.

**After the user writes a description he/she gets prompted with:**

* Anything else? If not, do you want to add a location or image to your report?

\[Send my report] ← this is a button the user can click on

\[Add an image] ← this is a button the user can click on

\[Add a location] ← this is a button the user can click on

**User selects option “add an image”:**

* Ok great! Just add a photo here like a normal chat, and I'll attach it to your report

**The user uploads it and the bot replies with:**

* Ok, got it. Do you want to add a location to your report?
* \[Send my report]  ← this is a button the user can click on
* \[Add a location]  ← this is a button the user can click on

**Or (if location is previously added):**

* Perfect! Do you want to send your report to us?
* \[Send my report]  ← this is a button the user can click on
* \[Add an image]  ← this is a button the user can click on

**User selects option “add a location”**

* Please add your location below

**User selects location on a map**

* Ok, got it. Do you want to add an image to your report?

**Or ( if image is previously added) :**

* Perfect! Do you want to send your report to us?

**User selects option “Send my report**

* Your report has been saved. Nice work!
* A moderator will check your report before it is published to {NAME}
* What do you want to do next?

  \[Send another report ] ← this is a button the user can click on (report-flow starts again)

\[Go to {NAME}]← this is a button the user can click on (link to the deployment)


---

# 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.ushahidi.com/platform-developer-documentation/dev-legacy-v3/the-ushahidi-platform-facebook-bot/the-facebook-bot/the-bot-script.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.
