> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/random-reply.md).

# Random Reply

Would you like to make your conversation flow more dynamic? The Random Reply action can help you send back randomly selected messages chosen from a static set.&#x20;

This cool action allows you to define a set of responses, and the system will randomly pick one of them to share with customers.

#### Step-by-Step Guide to Using Random Reply in Action[#](https://gethelp.tiledesk.com/articles/how-to-use-the-random-reply-action-in-design-studio/#step-by-step-guide-to-using-random-reply-in-action) <a href="#step-by-step-guide-to-using-random-reply-in-action" id="step-by-step-guide-to-using-random-reply-in-action"></a>

To use this action, you need to select it from the left side menu and insert it into the block where you want to use it.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FZVh2i0CO3yE2H2k692s5%2F2x4jrp-Screenshot%202024-08-05%20at%2017.35.14.png?alt=media&amp;token=c253c2b6-1ed8-4b6a-a044-79df7af29990" alt=""><figcaption></figcaption></figure>

\
I will insert it in the first block to send different welcome messages to users.

As you can see in the image below, by clicking on the block, a new right-side menu will appear that allows you to insert different messages. I will add these to the system:

* *Hi there, thanks for visiting our website. How may I help you?*
* *Welcome, what brings you here today?*
* *Greetings! How can I assist you today?*
* *Hi! What can I do for you today?*

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FhENBk8pQ6HEvjsJ1281L%2F2x4jvt-Screenshot%202024-08-05%20at%2017.47.17.png?alt=media&amp;token=50187540-9620-4a15-b4d2-c4499a7ac12d" alt=""><figcaption></figcaption></figure>

That’s all! Let’s test the bot by initiating the conversation twice.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FzyhGDZkRAHtSxUoek41y%2F2x4k5o-Screenshot%202024-08-05%20at%2017.51.50.png?alt=media&amp;token=3e020c0c-fc81-4509-91f5-467dc63b8b7e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FxCYFIihK3tIXF0bothGF%2F2x4k5y-Screenshot%202024-08-05%20at%2017.52.35.png?alt=media&amp;token=bd5dec59-256a-45e1-b48e-03bfcd14e2e5" alt=""><figcaption></figcaption></figure>

As you can see, in each iteration, one welcome message has been sent to the user. Hope this helps!

To read more about AI agents, please visit [www.tiledesk.com](https://tiledesk.com/).&#x20;

To get started for free, [click here](https://panel.tiledesk.com/v3/dashboard/#/signup)

Also, if you have any questions, do not hesitate to contact us via <support@tiledesk.com>.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/random-reply.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
