> For the complete documentation index, see [llms.txt](https://docs.wonderchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wonderchat.io/setup-guides/collecting-leads-with-your-chatbot/how-to-set-up-leads-generation-sequences.md).

# Lead Generation Sequences

***

You can use your AI Agent to generate lead generating sequences.

A lead generation AI Agent would usually ask the site user a series of questions to gather enough information before asking for their contact.

To set up the leads generating sequence, we recommend that you use the feature known as **“Preset Messages”**. Here's how:

***

## Step 1: Go to **Chatbots >** Actions (⋮) > **"Edit Chatbot"**

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

## Step 2: Navigate Under the "General" Tab

<figure><img src="/files/mSqwVR8IeVOwmhEE5hz5" alt=""><figcaption><p>Navigate under <strong>"General"</strong> tab</p></figcaption></figure>

## Step 3: Scroll Down to "**Chat Message Settings"**

<figure><img src="/files/VanGsZ4GsGyC5BIczTta" alt=""><figcaption><p>Scroll down until you see <strong>"Chat Message Settings"</strong></p></figcaption></figure>

## Step 4: Add Your Lead-Generation Question Sequence

<figure><img src="/files/mCVumoapDQq3vT5KHGxf" alt=""><figcaption><p>Go to "Preset Messages". Fill in your lead-generation questions.</p></figcaption></figure>

<figure><img src="/files/bwB1uewCxogdR4ThScJz" alt=""><figcaption><p>Example of Leads-Generation Questions</p></figcaption></figure>

### Preset Messages

* Preset messages are part of the question sequence used to qualify your leads.
* These messages guide users through specific questions to collect valuable information, such as their preferences and contact details.
* At the end of the sequence, you can request the user's email for follow-up communication.

### **After Number of Messages**

* The "After \[X] Messages" option lets you specify when the AI Agent should initiate the preset messages.
* For example, if set to “1”, the AI Agent will trigger the first preset message after the user sends their first message.
* By using preset questions, you can guide users toward providing answers that help qualify them as leads.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
