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

# Email Tool

> Let your assistant send emails during a chat from a verified sender.

The email tool lets the assistant send emails on your behalf during a conversation — for example, to forward a shopper's request to your team or send a confirmation back to the shopper. Emails go out from a sender you have set up, so they come from your brand instead of a generic address.

> [!NOTE]
>
> Before the email tool can send, set up a sender: either the **default sender**, or your own verified email domain and sender profile. See [Settings › Email Domains](https://docs.yourhomie.ai/en/user-guide/settings/email-domains.md). A verified own domain keeps emails on-brand and improves deliverability.

## Set up the email tool

**1. Create the tool**

On the platform, go to **Tools** and select **New tool**. Choose **Email**, or start from a template such as *Handover to support* or *Lead capture* and adjust it.

**2. Name and describe the tool**

Under **Configuration**, give the tool a clear **Name** and a **Description** of when the assistant should send the email. The description tells the assistant when to trigger the tool, so be precise about the situation that should call it.

> [!NOTE]
>
> Be as specific as possible — a vague description like "handles support requests" gives the assistant little to work with. Prefer something like "use when the shopper asks to be contacted by a support agent."

**3. Define the parameters (optional)**

Under **Parameters**, add any values the assistant should collect for the email — for example a customer email address or a summary of the request. The assistant fills these in from the conversation.

**4. Configure the emails**

Under **Emails**, add one or more messages. For each, set the **Recipient** (a fixed address, or **From parameter** to use a value the assistant collected), the **Subject**, and the message text. Subject and message can include `{parameter_name}` placeholders that are filled in when the email is sent. Optional parameter recipients are skipped when left empty.

**5. Choose the sender**

Under **Sending**, select the sender profile that emails are sent from.

**6. Test it**

Select **Test tool**, enter sample values, and run it.

> [!TIP]
>
> The test email is delivered and shows your verified sender name and address.

> [!WARNING]
>
> A test sends a real email to the configured recipients. Use addresses you control when testing.

**7. Assign it to an assistant**

Save the tool, then open the assistant that should use it and assign the tool from its **Tools**.

## How the assistant uses it

Once assigned, the assistant sends an email when the conversation calls for it — for instance, when a shopper asks to be contacted or wants something forwarded to your team. It composes the message from your templates, sends it from your sender, and continues the chat.

> [!WARNING]
>
> The email tool can send messages automatically during live chats. Use a sender you control, and verify your domain so messages are delivered and clearly come from your brand.

## Chat ID and chat link

Two placeholders are always available in the **Subject** and the message text, without defining a parameter:

| Placeholder | Filled with |
| - | - |
| `{system_chat_id}` | The ID of the chat that sent the email. |
| `{system_chat_url}` | A link to that chat on the platform. Opening it requires a platform login. |

Use them to find the original conversation after a handover, for example `Open the chat: {system_chat_url}`.

* They work in the subject and the message text, not as the recipient.
* **Test tool** fills them with example values in the same format, because a test has no real chat.
* If one of your parameters has the same name, the system value is used.

## Next steps

> [card] [Email domains](https://docs.yourhomie.ai/en/user-guide/settings/email-domains.md)
>
> Add and verify the domain emails are sent from.

> [card] [HTTP Tool](https://docs.yourhomie.ai/en/user-guide/tools/custom-tools.md)
>
> Add HTTP request tools for live data and actions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.