# Send an email

Send an Email action block is used for sending real time email notification to internal stakeholders about the conversation that happened between the chatbot and the visitor.

Setting up 'Send Email' action block

Send an Email action block is made of the following:

#### Recipients: <a href="#recipients" id="recipients"></a>

You can add the email IDs of the recipients or internal stakeholders who will be notified about the conversation that happened between the chatbot and visitor.

Just like the emails, you can configure the ID’s in following fields:

* To
* CC
* BCC

#### Subject: <a href="#subject" id="subject"></a>

Allows you to define the subject name for this email notification. By default it will be “Lead generated via wotSABot”

**Note**: You can even use the variables in the subject

#### Body: <a href="#body" id="body"></a>

Brief overview of the information that you want your stakeholders to be notified about.

For example, if I want to be notified about a new lead generated by the bot. You would use the following body:

> Hey! A new lead was generated by the bot.
>
> Here are the details:
>
> Name: { name}
>
> Email: {email}
>
> Phone: {phone}
>
> Description: {info}
>
> Location: {city}, {country}
>
> Webpage: {url}

**Note**: You can use variables in the email.

**Include chat transcript**

By enabling this, we will include the entire conversation history between the user and the bot till this point. It will allow your team to look at the chat exactly as it occurred.

After enabling this, you can still add the body for more context. This will be added at the bottom of the email.

\ <br>


---

# 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.wotsabot.ai/wotsabot-help-articles/bot-builder/action-blocks/send-an-email.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.
