# Send to Email Action

### The basics

The "send to email" action lets you send an email containing static information and attribute values. This is useful to notify a party that an interaction with the chatbot has occurred and to share the details.

### What you'll need

All you need to set this up is an email address to send the email to. Note that the action only sends to a single email address.

### Where to find

<figure><img src="/files/Fo5O3sZDxpEJzLKeRBDZ" alt=""><figcaption><p>Select the action library to add pre-defined actions like the send to email action</p></figcaption></figure>

To set up the send to email action for a given scenario in your workspace:

Go to your Workspace overview, select Manage Scenarios (Scenarios)

On the scenario overview, select the scenario for which you would like to add a send to email action.

Use the left-hand menu and click on the Integrate menu item.

Use the 'Add action from library' button.

### Structure

Once you click on "Add from action library", give the action a name of your choice.

Select "Send to Email".

<figure><img src="/files/DMytU8peeTRI0Pizdrgw" alt=""><figcaption><p>Send to email action</p></figcaption></figure>

Add an email address, subject line and body.

You can use attributes in your message. Do make sure these attributes have values, e.g. you can set attribute values in buttons, or attribute values may be passed on through integrations. For more on attributes and values, visit the [Contexts and attributes](/core-concepts/contexts-and-attributes.md) section.

<figure><img src="/files/CnpEz0R94mKC2uQ7TZ12" alt=""><figcaption><p>Send to email details</p></figcaption></figure>

Save the action.

Activate the action.

<figure><img src="/files/UIL0nZh8TnhBChFVcdaV" alt=""><figcaption><p>Activate the action</p></figcaption></figure>

### Using the action

In the designer, go to the intent that you want to action to be triggered from.

Click on "Add .. actions, ..." at the bottom of the component pane.

<figure><img src="/files/5Uo0u7Ia6e6mffp1ukQi" alt=""><figcaption><p>Add conditions, actions and attributes</p></figcaption></figure>

Select the action from the dropdown.

<figure><img src="/files/ONjfe263ZQQVPAzpeKCd" alt=""><figcaption><p>Select the action from the dropdown list</p></figcaption></figure>

The action is now functional. Test it by using the preview. The email will be sent to the email address you specified.


---

# 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.opendialog.ai/opendialog-platform/actions/actions-from-library/send-to-email-action.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.
