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

# SendGrid

> Connect BonData to SendGrid to send automated emails from your playbooks

SendGrid (by Twilio) is a cloud-based email delivery platform for transactional and marketing emails, trusted by developers for reliable, scalable email infrastructure. With BonData, you can connect to your SendGrid account to send automated emails from your Agent workflows.

## API Key Authentication

BonData connects to SendGrid using an API key for secure email sending.

### Step 1: Create an API Key

1. Go to [SendGrid Dashboard](https://app.sendgrid.com/)
2. Navigate to **Settings** → **API Keys**
3. Click **Create API Key**
4. Give it a name (e.g., `BonData Integration`)
5. Select **Restricted Access** and enable:
   * **Mail Send** → Full Access
6. Click **Create & View**
7. Copy the API key immediately (it won't be shown again)

### Step 2: Connect in BonData

1. In BonData, navigate to **Integrations** and select **SendGrid**
2. Enter your API Key
3. Click **Connect**

## Required Fields

| Field   | Description                                 |
| ------- | ------------------------------------------- |
| API Key | SendGrid API key with Mail Send permissions |

<Note>
  Make sure your SendGrid account has verified sender identities configured before sending emails.
</Note>

## Using SendGrid in Playbooks

Once connected, you can use SendGrid in your playbooks to send automated emails.

### Send Email Node

Add a **Send Email** node to your playbook:

* **Subject** - Email subject line
* **Message Template** - Email body content
* **To Emails** - Recipient addresses (can use `{{email_field}}`)
* **From Email** - Sender address (must be verified in SendGrid)
* **CC/BCC** - Optional copy recipients

### Message Templating

Use `{{field_name}}` syntax to include dynamic data:

```
Hi {{customer_name}},

Your order #{{order_number}} has been confirmed.

Total: ${{total_amount}}
```

## Capabilities

* Send plain text or HTML emails
* Dynamic recipient addresses from workflow data
* CC and BCC support
* Templated subject lines and body content
* Bulk email sending with personalization
