# SendGrid Mail Action

Thia action will send a mail message using your SendGrid service account. You can either input the mail body directly or specify a transactional template id.

![](/files/-LhWIWMiYuCFIIgu94ip)

### Settings

The action uses the following settings:

| Setting     | Description                                                                                       | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ----------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| API Key     | The API key associated to your SendGrid account                                                   | :white\_check\_mark:                                 |
| From        | The sender email address. Must be one of the addresses you've validated on your SendGrid account. | :white\_check\_mark:                                 |
| To          | The recipients of the message.                                                                    | :white\_check\_mark:                                 |
| Mode        | Choose to send a custom message or an existing transactional template                             | :no\_entry:                                          |
| Subject     | The subject of the mail message                                                                   | :white\_check\_mark:                                 |
| Body        | The full body of the mail message                                                                 | :white\_check\_mark:                                 |
| Template Id | The id of the transactional template you wish to use.                                             | :white\_check\_mark:                                 |

### Remarks

Multiple addresses can be specified in the To field by separating each one with a semicolon.

The Body setting can contain full html formatting. Different mail clients may choose to render custom html differently.

Both Body and Template contents are [fully parsed](/actions-and-operations/dynamic-parsing.md) by Xenioo at runtime.

### Trigger

This action does not trigger any event.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action can be used only inside interactions and not as child of other actions. This action requires a [Premium Account](/basic-concepts/your-account/upgrading-from-free.md) to be used on a live chatbot.


---

# 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://docs10.xenioo.com/actions-and-operations/integration/xenioo.bots.actions.base.integrations.sendgridmailaction.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.
