> For the complete documentation index, see [llms.txt](https://gallabox.gitbook.io/gallabox-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gallabox.gitbook.io/gallabox-docs/bots/bot-utilities/delay.md).

# Delay

Optimize your chat-flow with Gallabox's Delay Card feature, enabling you to add delays of minutes or hours for a smoother interaction. Ensure your session TTL is longer than the delay time.

> **Who can use this Card?**
>
> * Gallabox Users having permission to either build and deploy bots or manage bots.
> * Available on Scale and Pro Plans.

There might be a situation when you would like to wait more than seconds for the user's response and then send the next message.

This is where the **Delay Card** in Gallabox comes into picture. You can add a delay of some **seconds**, **minutes** or **hours.**

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FJCUjJzELgdLfew97qAkF%2FDelay%20Card%20in%20Gallabox.gif?alt=media&amp;token=5ed584dd-cb44-4d95-bc7f-0b79d495f5d5" alt=""><figcaption><p>Delay Card</p></figcaption></figure>

For Instance, if you have asked the user for any document, it is recommend to use the **Delay card** after the **Send card** to keep the conversation flowing. Refer to the below screenshot for more clarity.

<figure><img src="broken://files/0luR75WZUt1acEh5rN9L" alt=""><figcaption><p>Delay Card in a Chat-flow</p></figcaption></figure>

In the above screenshot, the flow is extended accordingly for [**On Completion**](#user-content-fn-1)[^1] and for [**On Interrupt**](#user-content-fn-2)[^2] conditions.

Like the example discussed above, you could use the Delay Card as per the chat-flow you are building.

{% hint style="info" %}
When using Delay Card, please make sure the session TTL is always greater than the time in the Delay Card.

*For Example, If the session TTL is kept 3 minutes, and the time in Delay is set as 15 minutes, then the chat-flow will follow the session TTL, meaning the chat will drop after 3 minutes.*
{% endhint %}

[^1]: Success Condition: When you don't receive any message from the user's end during the time set in Delay Card.

[^2]: Failure Condition: When you receive the message from the user before the Delay time is over.
