Sendgrid automation

From sickn33/agentic-awesome-skills · View interactive version

Sendgrid automation is an AI agent skill from the GitHub repository sickn33/agentic-awesome-skills. Automate SendGrid email delivery workflows including marketing campaigns (Single Sends), contact and list management, sender identity setup, and email analytics through Composio's SendGrid toolkit.

How to use this skill

Skill file

SendGrid Automation via Rube MCP

Automate SendGrid email delivery workflows including marketing campaigns (Single Sends), contact and list management, sender identity setup, and email analytics through Composio's SendGrid toolkit.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. Authenticate the MCP server/client and authorize the SendGrid account; the endpoint alone does not grant access.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit sendgrid
  3. If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Create and Send Marketing Campaigns (Single Sends)

When to use: User wants to create and send a marketing email campaign to a contact list or segment.

Tool sequence:

  1. SENDGRID_RETRIEVE_ALL_LISTS - List available marketing lists to target [Prerequisite]
  2. SENDGRID_CREATE_A_LIST - Create a new list if needed [Optional]
  3. SENDGRID_ADD_OR_UPDATE_A_CONTACT - Add contacts to the list [Optional]
  4. SENDGRID_GET_ALL_SENDER_IDENTITIES - Get verified sender ID [Prerequisite]
  5. SENDGRID_CREATE_SINGLE_SEND - Create the campaign with content, sender, and recipients [Required]

Key parameters for SENDGRID_CREATE_SINGLE_SEND:

Pitfalls:

2. Manage Contacts and Lists

When to use: User wants to create contact lists, add/update contacts, search for contacts, or remove contacts from lists.

Tool sequence:

  1. SENDGRID_RETRIEVE_ALL_LISTS - List all marketing lists [Required]
  2. SENDGRID_CREATE_A_LIST - Create a new contact list [Optional]
  3. SENDGRID_GET_A_LIST_BY_ID - Get list details and sample contacts [Optional]
  4. SENDGRID_ADD_OR_UPDATE_A_CONTACT - Upsert contacts with list association [Required]
  5. SENDGRID_GET_CONTACTS_BY_EMAILS - Look up contacts by email [Optional]
  6. SENDGRID_GET_CONTACTS_BY_IDENTIFIERS - Look up contacts by email, phone, or external ID [Optional]
  7. SENDGRID_GET_LIST_CONTACT_COUNT - Verify contact count after operations [Optional]
  8. SENDGRID_REMOVE_CONTACTS_FROM_A_LIST - Remove contacts from a list without deleting [Optional]
  9. SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS - Delete an entire list [Optional]
  10. SENDGRID_IMPORT_CONTACTS - Bulk import from CSV [Optional]

Key parameters for SENDGRID_ADD_OR_UPDATE_A_CONTACT:

Pitfalls:

3. Manage Sender Identities

When to use: User wants to set up or view sender identities (From addresses) for sending emails.

Tool sequence:

  1. SENDGRID_GET_ALL_SENDER_IDENTITIES - List all existing sender identities [Required]
  2. SENDGRID_CREATE_A_SENDER_IDENTITY - Create a new sender identity [Optional]
  3. SENDGRID_VIEW_A_SENDER_IDENTITY - View details for a specific sender [Optional]
  4. SENDGRID_UPDATE_A_SENDER_IDENTITY - Update sender details [Optional]
  5. SENDGRID_CREATE_VERIFIED_SENDER_REQUEST - Create and verify a new sender [Optional]
  6. SENDGRID_AUTHENTICATE_A_DOMAIN - Set up domain authentication for auto-verification [Optional]

Key parameters for SENDGRID_CREATE_A_SENDER_IDENTITY:

Pitfalls:

4. View Email Statistics and Activity

When to use: User wants to review email delivery stats, bounce rates, open/click metrics, or message activity.

Tool sequence:

  1. SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS - Get account-wide delivery metrics [Required]
  2. SENDGRID_GET_ALL_CATEGORIES - Discover available categories for filtering [Optional]
  3. SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIES - Get stats broken down by category [Optional]
  4. SENDGRID_FILTER_ALL_MESSAGES - Search email activity feed by recipient, status, or date [Optional]
  5. SENDGRID_FILTER_MESSAGES_BY_MESSAGE_ID - Get detailed events for a specific message [Optional]
  6. SENDGRID_REQUEST_CSV - Export activity data as CSV for large datasets [Optional]
  7. SENDGRID_DOWNLOAD_CSV - Download the exported CSV file [Optional]

Key parameters for SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS:

Key parameters for SENDGRID_FILTER_ALL_MESSAGES:

Pitfalls:

5. Manage Suppressions

When to use: User wants to check or manage unsubscribe groups for email compliance.

Tool sequence:

  1. SENDGRID_GET_SUPPRESSION_GROUPS - List all suppression groups [Required]
  2. SENDGRID_RETRIEVE_ALL_SUPPRESSION_GROUPS_FOR_AN_EMAIL_ADDRESS - Check suppression status for a specific email [Optional]

Pitfalls:

Common Patterns

ID Resolution

Always resolve names to IDs before operations:

Pagination

Async Operations

Contact operations (ADD_OR_UPDATE_A_CONTACT, IMPORT_CONTACTS) are asynchronous:

Known Pitfalls

ID Formats

Rate Limits

Parameter Quirks

Legacy vs Marketing API

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| List marketing lists | SENDGRID_RETRIEVE_ALL_LISTS | page_size, page_token |

| Create list | SENDGRID_CREATE_A_LIST | name |

| Get list by ID | SENDGRID_GET_A_LIST_BY_ID | id |

| Get list count | SENDGRID_GET_LIST_CONTACT_COUNT | id |

| Add/update contacts | SENDGRID_ADD_OR_UPDATE_A_CONTACT | contacts, list_ids |

| Search contacts by email | SENDGRID_GET_CONTACTS_BY_EMAILS | emails |

| Search by identifiers | SENDGRID_GET_CONTACTS_BY_IDENTIFIERS | identifier_type, identifiers |

| Remove from list | SENDGRID_REMOVE_CONTACTS_FROM_A_LIST | id, contact_ids |

| Delete list | SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS | id, delete_contacts |

| Import contacts CSV | SENDGRID_IMPORT_CONTACTS | field mappings |

| Create Single Send | SENDGRID_CREATE_SINGLE_SEND | name, email__config__*, send__to__list__ids |

| List sender identities | SENDGRID_GET_ALL_SENDER_IDENTITIES | (none) |

| Create sender | SENDGRID_CREATE_A_SENDER_IDENTITY | from__email, from__name, address |

| Verify sender | SENDGRID_CREATE_VERIFIED_SENDER_REQUEST | from_email, nickname, address |

| Authenticate domain | SENDGRID_AUTHENTICATE_A_DOMAIN | domain |

| Global email stats | SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS | start_date, aggregated_by |

| Category stats | SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIES | start_date, categories |

| Filter email activity | SENDGRID_FILTER_ALL_MESSAGES | query, limit |

| Message details | SENDGRID_FILTER_MESSAGES_BY_MESSAGE_ID | msg_id |

| Export CSV | SENDGRID_REQUEST_CSV | query |

| Download CSV | SENDGRID_DOWNLOAD_CSV | download_uuid |

| List categories | SENDGRID_GET_ALL_CATEGORIES | (none) |

| Suppression groups | SENDGRID_GET_SUPPRESSION_GROUPS | (none) |

| Get template | SENDGRID_RETRIEVE_A_SINGLE_TRANSACTIONAL_TEMPLATE | template_id |

| Duplicate template | SENDGRID_DUPLICATE_A_TRANSACTIONAL_TEMPLATE | template_id, name |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Example

User request:

Automate SendGrid email delivery workflows including marketing campaigns (Single Sends), contact and list management, sender identity setup, and email analytics through Composio's SendGrid toolkit.

Limitations

This is a historical connector schema/limit snapshot; live discovery and provider documentation take precedence. Creating a Single Send is a draft, not evidence of delivery; discover the actual schedule/send endpoint only for an explicitly authorized send, final content, sender, audience and time. Do not default to send_to_all. Contact import does not establish consent or permit resubscribing suppressed recipients. Verification emails, sender changes and DNS authentication require their own authorized targets. Poll async jobs with bounded backoff rather than assuming a fixed delay; do not repeat unknown-result sends. Open/click events may reflect privacy proxies or bots, not human reading. Minimize recipient data in exports and treat temporary download URLs as sensitive.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.