> For the complete documentation index, see [llms.txt](https://learn.doubletick.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.doubletick.io/bot-studio/actions/logic-and-flow/how-to-set-time-delay-on-chatbot.md).

# How to Set Time Delay on Chatbot

Incorporating delays within your chatbot flows can significantly enhance user experience and interaction effectiveness. One essential tool for achieving this is the "Time Delay" action, which allows you to introduce pauses of specified durations between messages or actions. Let's explore how this action works and its practical application through an example.

### **Example Scenario:**

Imagine you're managing a customer support chatbot for an e-commerce platform. After a customer initiates a query, you want to provide them with automated responses while ensuring they don't feel overwhelmed by rapid-fire messages. Here's how you can leverage the "Time Delay" action:

1. **Customer Query:** A customer submits a query regarding order tracking through the chatbot interface.
2. **Time Delay Action:** Upon receiving the query, you configure the bot flow to incorporate a "Time Delay" action. You set a delay of 5 seconds to ensure a brief pause before the bot responds.
3. **Bot Response:** After the delay, the chatbot delivers an initial response acknowledging the customer's query and informing them that their request is being processed.
4. **Additional Interactions:** Following the initial response, the bot can engage in further interactions such as retrieving order details, providing shipping updates, or offering assistance with related inquiries.

<figure><img src="/files/ssNPMCrv6rj1CcYKdkzY" alt=""><figcaption></figcaption></figure>


---

# 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://learn.doubletick.io/bot-studio/actions/logic-and-flow/how-to-set-time-delay-on-chatbot.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.
