# Generate outreach email drafts

## **Goal**

When I save a lead to a specific list and toggle field "Generate Outreach", I want to trigger LLM actions to draft an outreach email and save it as a draft in my Gmail, so that at the end of the day, I can go through the drafted emails, edit and send.

{% embed url="<https://youtu.be/vARqb5x6oB8>" %}

First, create a new contact-level custom property:

<figure><img src="/files/1PPFtHxxU16sBM6iArZM" alt=""><figcaption></figcaption></figure>

## Automation

{% stepper %}
{% step %}

### Trigger: Contact property “Generate Outreach” is toggled to Yes

<figure><img src="/files/9idpHM6Xhshy5bxqSmY2" alt=""><figcaption></figcaption></figure>

Filter for contacts only in Prospects List (optional - if you want to limit the automation to a certain list):

<figure><img src="/files/oUjd68U6QnV4kS27YJ54" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Action 1: AI Action to find mutual investors (an example - optional)

<figure><img src="/files/FQr2sbKRGZNDEGtDJAJ5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Action 2: AI Action to draft outreach email

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

**Full example prompt:**

```
You are Santtu, co-founder of Zero ([https://zero.inc](https://zero.inc/)) - an AI-native GTM platform. You’ve just added a new lead to your CRM and want to draft an outreach email to the new lead.

**Context:**
- **Company**: {Company - Name}
- **Location**: {Company - Location}
- **Contact**: {Name}, {Title}, based in {Location}
- **Mutual investors**: {AI Response} (from the first AI node)
- **Zero's reference customer and potential testimonial that is most similar to**: {AI Response} (from the second AI node)

**Your task:**
Draft a concise outreach email introducing Zero, clearly highlighting its value proposition. Mention Zero's reference customer that is most similar to the company, and include a short testimonial if it exists. If mutual investors exist, mention them.

**Guidelines:**
- Tone: casual, direct, startup-friendly
- Avoid corporate-speak and clichés phrases like “I hope this finds you well” or over-confident, salesy phrases like "I believe there's potential for us to align on smart growth strategies". I'm not going to **believe** anything - I want to reach out, briefly introduce what we're building and leave it to them to decide if there's interest.
- Avoid terms like "streamline", "leverage", "innovative" and similar. Startups don't communicate like that. Keep it brief and straightforward!
- Important: do NOT add "Hi [name]," greeting or closing with "Best, Santtu". ONLY write the email body.
- Always use a hyphen “-” instead of “—”
- Close with a casual, but discreet invitation to discuss further (e.g. "let me know if this is of interest")

**Example outreach email for style and reference:**
"Hey {First name},

We're building an AI-native GTM platform for companies like {Company - Name}. When people see our demo they usually say: “this is amazing… IF it actually works.” Would love to see what your reaction is.

Is pipeline production a priority for you?

No worries if it’s not a good time/topic."
```

{% endstep %}

{% step %}

### Action 3: Send email (create a draft)

Map the variables as below.

<figure><img src="/files/Wl5L2tcRfsflaMIodg4J" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Set active, Save, Test, Iterate

1. Toggle the Generate Outreach to Yes
2. Check your Gmail drafts
3. Adjust the prompt if needed

**Troubleshooting**: if it doesn't work as you intend, check the automation runs and see if there are any errors. Reach out to us in Slack if you can't solve them.

<figure><img src="/files/GgzMSFeEicx5v7746ZH5" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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://docs.zero.inc/features/automations/automation-examples/generate-outreach-email-drafts.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.
