# Automated Follow-Up For Stale Leads

{% embed url="<https://www.loom.com/share/047493a0ab6a41e2a158e0c1c36864d8?sid=5671e1a4-2b2b-4f02-9ae9-678d7f7cccf7>" %}

In your agent, navigate to the "Triggers" tab, and create a new trigger. In the details page, you will notice a toggle labeled "Enable Followup"

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

## Follow-Up Details

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

* **Duration:** This is how long without a response the bot should wait before generating a follow-up message to try and re-engage the lead
* **Maximum Attempts:** The max amount of ***consecutive*** outreach messages the bot should send. *Both this and the duration above are reset each time the lead sends a message to your bot.*
* **Prompt**: The prompt to use when generating a follow-up message. You can find examples [here](/prompt-design/prompt-examples.md)
* **Tag Conditions:** We will evaluate these conditions before actually sending a follow-up message to the lead. If the conditions are met, we will not send any outreach message.


---

# Agent Instructions: 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:

```
GET https://help.capriai.us/integrating-with-crm-and-webhook-information/triggers/automated-follow-up-for-stale-leads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
