> ## Documentation Index
> Fetch the complete documentation index at: https://watermelon.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Agent for lead generation

> Create a Lead generation AI Agent that collects visitor information, qualifies leads, and sends them straight into your CRM.

Follow this guide to set up your agent, define its lead-capture behavior, and connect it to your sales tools.

## **What this agent can do**

* Collect contact details (email, phone)
* Replace your contact form
* Qualify leads (basic or BANT-style)
* Book demos or callback requests
* Capture newsletter sign-ups
* Run discovery-style intake conversations
* Send leads to CRM systems via Actions or Zapier

## **Before You Begin**

Before setting up your Lead generation AI Agent, make sure you have the right elements in place. This ensures that your agent can store lead details and send them to your CRM.

### **Prerequisites**

<Info>
  You’ll need an active Watermelon account. If you don’t have one yet, [**sign up**](https://signup.watermelon.ai/s) first. and a list of lead details you want to collect (for example: budget, company size, demo request)
</Info>

<Info>
  To set up this Agent, you need an Advanced, Business or Enterprise License.
</Info>

### **What You’ll Do**

<Steps>
  <Step title="Set up Custom Fields">
    Create the fields your agent will use to store lead information.
  </Step>

  <Step title="Build your Lead generation personality">
    Define how your agent should ask questions and guide visitors through the lead flow.
  </Step>

  <Step title="Create your qualification flow">
    Set up a basic or advanced sequence of questions to gather information from your leads and qualify them.
  </Step>

  <Step title="Make sure contact details are captured">
    Configure how the agent asks for email/phone details.
  </Step>

  <Step title="Connect your CRM">
    Sync leads to HubSpot, Salesforce, Pipedrive, Zoho, Monday, Mailchimp or others using Actions or Zapier.
  </Step>

  <Step title="Set up human handover rules (optional)">
    Forward hot leads to your team or notify sales instantly.
  </Step>

  <Step title="Optimize for conversions">
    Use proven best practices to improve lead quality and completion rates.
  </Step>

  <Step title="Test & publish">
    Test your conversation, field mapping, and CRM integrations before going live.
  </Step>
</Steps>

<Tip>
  **Estimated time:** 20 to 30 minutes from start to finish.
</Tip>

## **Step 1: Set up your Custom Fields**

Your Lead generation AI Agent needs Fields to store the information it collects during the conversation. These fields make sure your CRM, Actions, or Zapier workflow receives complete and structured lead data.

<Steps>
  <Step title="Navigate to Fields → Custom Fields">
    Click **Fields** to open your field overview to create the fields your agent will use. \
    Select **Custom Fields.**

    <Frame>
      <img src="https://mintcdn.com/watermelon/mZg9KlaD50Kngxit/images/contact-management/custom-fields/custom-fields-menu.png?fit=max&auto=format&n=mZg9KlaD50Kngxit&q=85&s=b30f6ebf66ec7cb5150c15a27b82f906" alt="Custom Fields Menu" width="2922" height="1390" data-path="images/contact-management/custom-fields/custom-fields-menu.png" />
    </Frame>
  </Step>

  <Step title="Add new fields">
    Click **Create**, give the Field a name, context and choose the field format.

    * **Name**: Provide a name for the Custom field. The name should make it very clear what data is displayed in the field.

    <Tip>
      Examples of relevant fields for lead generation:

      * Company size
      * Company name
      * Budget
      * Project type
      * Urgency / timeline
      * Preferred meeting time
      * Newsletter opt-in
    </Tip>

    * **Context**: Each Custom Field includes an instruction box. Use this to tell the Agent *exactly* what kind of information belongs in that field. This way, the field can automatically be filled in during a conversation.

      **Example instructions you can copy:**

      **Company name**

      > “Save the visitor’s company name exactly as they mention it.”

      **Budget**

      > “Store the visitor’s budget as a number or range (e.g. €1000, €2–3k). Don’t add text.”

      **Urgency / timeline**

      > “Save how soon the visitor is planning to start (e.g. ‘within 1 month’, ‘Q3’, ‘ASAP’).”

      **Project type**

      > “Store the type of project the visitor wants help with, using a short description.”

      **Preferred meeting time**

      > “Save the date or time suggested by the visitor.”
    * **Field formats**:
      * Short text
      * Numbers
      * Email
      * Phone
      * Currency
      * Date
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/watermelon/mZg9KlaD50Kngxit/images/contact-management/custom-fields/custom-fields-details.png?fit=max&auto=format&n=mZg9KlaD50Kngxit&q=85&s=941e853a8438ad3375ceec1e8b18ad65" alt="Custom Fields Details" width="2922" height="1390" data-path="images/contact-management/custom-fields/custom-fields-details.png" />
</Frame>

### **Best Practices**

* Keep field names short, clear, and recognizable
* Only create fields you actually need for qualification
* Use the AI instruction box to guide the agent
* Use the default **Email** and **Phone** field, do not create custom fields for this
* Don’t overload your agent with unnecessary fields — fewer fields = higher conversion

<Tip>
  **Tip:** Want to know more about custom fields? [Read our article here](https://watermelon.ai/docs/help-center/contact-management/custom-fields).
</Tip>

## **Step 2: Build your Lead generation Personality**

Your agent’s personality defines how it asks questions, collects details, and guides visitors through the lead flow.

In this step, you’ll create clear instructions so the agent knows *exactly* how to behave during lead generation.

### **Write your Personality**

<Steps>
  <Step title="Go to your AI Agent">
    Navigate to **Agents → Select your agent → Agent settings**
  </Step>

  <Step title="Add your personality">
    Describe how your agent should speak and behave. Write this in short, clear instructions the AI can easily follow.

    <Tip>
      **Tip:** See the mix and match examples below to try within your agent.
    </Tip>
  </Step>

  <Step title="Save your changes">
    Click **Save** before continuing.

    <Frame>
      <img src="https://mintcdn.com/watermelon/-kk8C_AEWfuwXqoN/images/guides/agent-use-cases/ai-agent-for-customer-service/agent-for-customer-service-personality.png?fit=max&auto=format&n=-kk8C_AEWfuwXqoN&q=85&s=ddab582085ac4fb6c7a82aa5c4f832cf" alt="Agent For Customer Service Personality" width="2914" height="1302" data-path="images/guides/agent-use-cases/ai-agent-for-customer-service/agent-for-customer-service-personality.png" />
    </Frame>
  </Step>
</Steps>

### **Use these building blocks (mix & match)**

You can combine the blocks below to shape a strong Lead generation personality.

<AccordionGroup>
  <Accordion title="Goal of Agent">
    > “Your goal is to collect visitor information, qualify the lead, and guide them toward the next step (demo, contact, quote, signup).”
  </Accordion>

  <Accordion title="What the agent does">
    > “Ask short, clear questions one at a time.”

    > “Summarize key details when helpful.”

    > “Store collected information in the correct custom fields.”

    > “Make the conversation friendly and encouraging.”
  </Accordion>

  <Accordion title="What the agent should not do">
    > “Always ask for email and phone number at the end of the conversation.”

    > “Don’t overwhelm the visitor with too many questions at once.”

    > “Don’t provide internal business details.”

    > “Don’t create unrealistic promises.”
  </Accordion>

  <Accordion title="Lead collection rules">
    > “Always ask for email and phone number at the end of the conversation.”

    > “Politely re-ask if the information seems incomplete or invalid.”
  </Accordion>

  <Accordion title="Qualification order">
    > “Follow this order when qualifying leads:
    >
    > 1. Understand their need
    > 2. Gather project details
    > 3. Ask timeline/urgency
    > 4. Collect budget (optional)
    > 5. Capture email and phone.”
  </Accordion>

  <Accordion title="Conversational tone">
    > “Friendly, helpful, clear, and human.”

    > “Short sentences, no heavy sales pressure.”
  </Accordion>

  <Accordion title="Error handling">
    > “If a visitor refuses info, offer an alternative (email or phone).”

    > “If an email looks invalid, ask the visitor to confirm.”
  </Accordion>
</AccordionGroup>

### **Example personality template (copy & use)**

You can paste this directly into your personality field:

> You are a Lead generation AI Agent. Your goal is to collect visitor information, understand their needs, qualify the lead, and guide them to the next step.
>
> Ask short, clear questions one at a time. Keep your tone friendly and helpful.
>
> Follow this order: need → project details → urgency → optional budget → email → phone.
>
> Politely re-ask if information is unclear or incomplete.
>
> Don’t overwhelm the visitor, don’t make promises, and don’t share internal business details.
>
> Encourage the visitor and keep the conversation smooth and human.

## **Step 3: Create your Qualification Flow**

Your agent guides visitors through a series of questions to understand their needs and qualify the lead. You instruct your AI Agent on *what to ask* and *in which order*.

<Steps>
  <Step title="Choose the questions you want to ask">
    Common examples:

    * What the visitor needs
    * Project details
    * Timeline
    * Budget (optional)
  </Step>

  <Step title="Add these instructions at Instructions">
    Tell the agent the order of questions and how to ask them.

    <Frame>
      <img src="https://mintcdn.com/watermelon/627nDG8QTn_lGQPX/images/features/instructions/instructions-settings.png?fit=max&auto=format&n=627nDG8QTn_lGQPX&q=85&s=d24bd81056b9c064f9fcf0fc59425d41" alt="Instructions Settings" width="2922" height="1390" data-path="images/features/instructions/instructions-settings.png" />
    </Frame>
  </Step>

  <Step title="Make sure each question maps to a Custom Field">
    Make sure your AI Agent knows **what the answer should look like** for each question.

    For example, if you ask for an address, explain what format is accepted so the agent can automatically fill the correct Custom Field.
  </Step>
</Steps>

### **Two recommended flows**

**Basic Lead Qualification Flow**

Add this into the Instructions:

> Start by asking what the visitor is looking for. Ask one question at a time.\
> Then ask for project details and when they want to begin.\
> Once you understand the need, ask what the visitor would like to do next (demo, quote, callback). At the end, always ask for email and phone number so we can follow up.

**Example conversation**

**Visitor:** I’m looking for help setting up a new website.\
**Agent:** Thanks for reaching out! Can you tell me a bit more about your project?\
**Visitor:** I want something simple for now.\
**Agent:** Got it. When would you ideally like to get started?\
**Visitor:** Within a month.\
**Agent:** Perfect. Would you like to schedule a demo or have someone contact you?\
**Visitor:** Yes, please contact me.\
**Agent:** Great — could you share your email address?\
**Visitor:** [john@email.com](mailto:john@email.com)\
**Agent:** Thanks! And what’s the best phone number to reach you?

<Frame>
  <img src="https://mintcdn.com/watermelon/0i3k-V4UimusFxF8/images/guides/agent-use-cases/ai-agent-for-lead-generation/agent-use-case-lead-generation-basic-lead.png?fit=max&auto=format&n=0i3k-V4UimusFxF8&q=85&s=56d8ad98a514325df74240bf0d6713ee" alt="Agent Use Case Lead Generation Basic Lead" width="2922" height="1374" data-path="images/guides/agent-use-cases/ai-agent-for-lead-generation/agent-use-case-lead-generation-basic-lead.png" />
</Frame>

**BANT-style flow**

1. Need
2. Decision-maker
3. Budget
4. Timeline
5. Email
6. Phone number

<Frame>
  <img src="https://mintcdn.com/watermelon/0i3k-V4UimusFxF8/images/guides/agent-use-cases/ai-agent-for-lead-generation/agent-use-case-lead-generation-bant-style.png?fit=max&auto=format&n=0i3k-V4UimusFxF8&q=85&s=e7b6f7c571ca8a6f84485fa32bc3fe6a" alt="Agent Use Case Lead Generation Bant Style" width="2922" height="1374" data-path="images/guides/agent-use-cases/ai-agent-for-lead-generation/agent-use-case-lead-generation-bant-style.png" />
</Frame>

<Tip>
  **Tip for a smooth qualification flow:** Keep questions short and ask them one at a time.

  Most businesses see higher conversion with 4–6 qualification questions.
</Tip>

## Step 4: Process leads

After the Agent collected all the information from a lead, you need to process the leads, so you can follow up on them. Within Watermelon, you can directly follow up conversations by using the Handover functionality. However, you can also use Zapier or Actions to directly add the leads into your CRM system.

### 4.1: Use Handover to follow up leads

By using the Handover functionality in Watermelon, you can immediately communicate with your lead. To do so follow these steps:

<Steps>
  <Step title="Set up Handover">
    Go to **Human Handover**, add instructions and a trigger. Choose for the trigger word **Submit Request.**

    <Frame>
      <img src="https://mintcdn.com/watermelon/SSTykc9V_kfCQUMw/images/guides/automation-guides/process-leads-via-zapier/handover-instructions.png?fit=max&auto=format&n=SSTykc9V_kfCQUMw&q=85&s=2cec128149c994435d0da133a2f9d865" alt="Handover Instructions" width="2938" height="1390" data-path="images/guides/automation-guides/process-leads-via-zapier/handover-instructions.png" />
    </Frame>
  </Step>

  <Step title="Add instruction">
    Go to **Instructions**, create a new instruction where you explain to the Agent when to handover the conversation to your team

    > When you collected all necessary data from a lead, ask them to type, **Submit request**. \
    > This way, you can forward the conversation to a human Agent.

    <Tip>
      More information about setting up the Handover can be found in [this article](/help-center/features/human-handover).
    </Tip>
  </Step>
</Steps>

### 4.2 Send leads to CRM systems via Actions or Zapier

When all data is collected, you can forward the data to your CRM System via Actions or Zapier.

* **Actions**: Connect the API of your CRM system to Watermelon and automatically forward all data. More information can be found [here](/help-center/build-your-agent/create-actions).
* **Zapier**: Set up an automation via Zapier to forward leads into your CRM without the help of a developer. Use[ this guide](/help-center/guides/automation-guides/process-leads-via-zapier) to help you with the set up.

<Check>
  Checklist before go live:

  * Mapping is set up
  * Required fields are being filled in
  * Test lead shows in CRM
  * Consent saved
</Check>

## 5. Publish & go live

### **Navigate to the activation Section**

Once you’re satisfied with your Lead generation Agent’s responses, it’s time to make it live! Navigate to the **“Activate”** tab in your agent, and click on **“Connect channel”** button to connect your desired channel.

For Customer Service Agents, it is important to know via which channel most your questions come in. In most cases, adding a **Chat Widget** to your website is already a great start. Adding **WhatsApp** can improve the customer service experience for your customers as they can easily reach out to you.

<Tabs>
  <Tab title="Chat widget (Recommended)">
    **Perfect for most websites**

    Adds a floating chat icon that users can click to start conversations. Non-intrusive and mobile-friendly.

    **Pros:**

    * Can utilize advanced features like **identity verification**.
    * Doesn’t interfere with your site’s design
    * Users can minimize/maximize as needed
    * Works great on mobile devices
    * Familiar UX pattern

    **Best for:** Business websites, blogs, e-commerce stores

    ### **Get Your Embed Code**

    In this guide we’ll use the Chat widget option, go to **Integrations** -> **My first widget** -> **Placement** -> **scroll down** to find the javascript code snippet.

    Copy the provided JavaScript code snippet:

    <Frame>
      <img src="https://mintcdn.com/watermelon/5ICJ1HQsAHXk-_ws/images/developer-resources/install-widget/install-widget-copy-code.png?fit=max&auto=format&n=5ICJ1HQsAHXk-_ws&q=85&s=d5c376458bae6e0306eeb71102c782d7" alt="Install Widget Copy Code" width="2938" height="1390" data-path="images/developer-resources/install-widget/install-widget-copy-code.png" />
    </Frame>

    ### **Add Code to Your Website**

    <Steps>
      <Step title="Locate Your Site's HTML">
        Find where you can add JavaScript code to your website. This is usually in the `<head>` section or before the closing `</body>` tag.

        <Tip>
          **For fast loading:** Place the script just before the closing `</body>` tag to ensure your page content loads first, then the chat widget appears.

          **For immediate availability:** Place the script in the `<head>` section to load the chat widget as early as possible, though this may slightly delay your page’s initial render.
        </Tip>
      </Step>

      <Step title="Paste the code">
        Copy and paste the embed script into your website’s HTML. If you’re using a CMS like WordPress, there’s usually a “Custom HTML” or “Scripts” section.
      </Step>

      <Step title="Save and publish">
        Save your changes and publish your website updates.
      </Step>
    </Steps>

    ### **Verify Installation**

    Visit your website and look for the chat bubble. Click it to test the integration!

    <Frame>
      <img src="https://mintcdn.com/watermelon/qQanUYnvvRhLVkWp/images/get-started/quickstart/live-widget.png?fit=max&auto=format&n=qQanUYnvvRhLVkWp&q=85&s=d7aa6a625f16f213dde5cda2532a68d3" alt="Live Widget Pn" width="3012" height="1474" data-path="images/get-started/quickstart/live-widget.png" />
    </Frame>

    <Check>
      **Success!** Your Lead generation Agent is now live and ready to help your website visitors.
    </Check>

    <Tip>
      Need more control over your widget? Check out our [**Developer Guides**](/help-center/developer-resources/chat-widget-customization) for more information on JavaScript embed, [**widget control options**](/help-center/developer-resources/chat-widget-customization), and advanced features like [**mobile app placement**](/help-center/developer-resources/add-widget-mobile) and [**event listeners**](/help-center/developer-resources/event-listeners).
    </Tip>

    ### **Customize Appearance (Optional)**

    Want to match your brand? Check out our [chat widget style guide.](/help-center/guides/chat-widget-style-guide)

    <Frame>
      <img src="https://mintcdn.com/watermelon/E7axGvzMaidSRbQ6/images/guides/agent-use-cases/ai-agent-for-lead-generation/agent-use-case-lead-generation-widget.png?fit=max&auto=format&n=E7axGvzMaidSRbQ6&q=85&s=92a012c56e6f7f35c8cc5b47c41b8715" alt="Agent Use Case Lead Generation Widget" width="2940" height="1396" data-path="images/guides/agent-use-cases/ai-agent-for-lead-generation/agent-use-case-lead-generation-widget.png" />
    </Frame>

    <AccordionGroup>
      <Accordion title="Branding options">
        * **Title / Logo** – Default is your company name; shown when no logo is added
        * **Avatar** – Displayed when no AI Agent is active and no chat is assigned
        * **Colors** – Set widget and background colors; check readability.
        * **Users (Welcome Screen)** – Choose which users appear when no Agent is active.
        * **Message Bubbles** – Pick *Default* (2 options) or *Custom* (full styling).
        * **Typography** – Adjust font type, size, and corner radius.
        * **Launcher** – Edit chat button icon, color, or full button design.
      </Accordion>

      <Accordion title="Behavior settings">
        * **Welcome screen** – Enable or disable intro screen.
        * **Main title** – Text shown on welcome screen.
        * **Send message element** – Text before chat starts (title, subtitle, button).
        * **Chat closed** – Set closed message and hours.
        * **Select links** – Add contact links (email, phone, FAQ, etc.).
        * **Eye-catcher** – Message above minimized icon.
        * **Welcome message** – Text shown before chat begins.
        * **Privacy screen** – Require agreement to privacy policy.
        * **Attachments** – Allow or block file uploads.
        * **Queue system** – Show waiting time for human handover.
        * **Unfold URLs** – Expand shared links.
        * **Watermelon branding** – Enable or disable logo.
        * **Auto open once** – Open widget automatically one time.
        * **Launcher placement** – Choose left/right position and spacing.
        * **Track visitors** – See which page chat started from.
        * **Browser data** – Capture user browser and device info automatically.
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Facebook Messenger">
    **Perfect for: Retail, hospitality, and brands with an active Facebook presence**

    Link your Agent to Facebook Messenger and respond instantly to page messages. Great for customer service, sales, and marketing conversations.

    **Pros:**

    * Connects to your existing Facebook Page
    * Reaches customers where they already are
    * Supports quick replies and attachments

    **Best for:** Brands with an active Facebook audience or social customer care

    <Info>
      Connect Facebook Messenger to Watermelon by following [this guide](/help-center/integrations/facebook-messenger).
    </Info>
  </Tab>

  <Tab title="Instagram DM">
    **Perfect for: Lifestyle, fashion, and creative businesses engaging with followers**

    Let your Agent reply to Instagram messages and story replies automatically. Stay responsive without needing to monitor your inbox 24/7.

    **Pros:**

    * Handles direct messages and story replies
    * Works with your verified business account
    * Keeps the same tone and branding as your posts
    * Manage all messages directly in Watermelon

    **Best for:** Businesses using Instagram for community engagement, leads, or support

    <Info>
      Connect Instagram DM to Watermelon by following [this guide](/help-center/integrations/instagram-dm).
    </Info>
  </Tab>

  <Tab title="WhatsApp Business">
    **Perfect for: Local shops, service providers, and customer support teams**

    Connect your Agent to WhatsApp to chat with customers directly through the world’s most popular messaging app. Fast, familiar, and mobile-first.

    **Pros:**

    * Customers can chat with your business just like with friends
    * Works seamlessly on desktop and mobile
    * Supports images, emojis, and links
    * Keeps full conversation history inside Watermelon

    **Best for:** Businesses with strong mobile traffic or customer support via WhatsApp

    <Info>
      Connect WhatsApp to Watermelon by following [this guide](/help-center/integrations/whatsapp).
    </Info>
  </Tab>
</Tabs>

### **Activate agent**

After you have connected your channel, click '**activate**' and your agent is now live on the connected channel!

## **🎉 Congratulations!**

You’ve successfully created, tested, and published your Lead generation AI Agent!
