Enable agents to send emails with Gmail and Outlook Mail

Email workflows start with an incoming message and then often need a follow up email sent from the same mailbox. Enabling agents to take over these email workflow responsibilities requires the ability to read, draft, and send an email. Ampersand already supported reading and drafting emails, but sending required a custom proxy call.

Ampersand now enables agents and applications to send email through Gmail and Outlook Mail (Microsoft 365) without making separate provider API calls.

Read and send email with Ampersand message objects

Both connectors expose new objects to manage messages:

  • AMPERSAND-messages : reading inbox mail or sending a new message
  • AMPERSAND-sentMessages : reading sent mail

The new objects give builders separate ways to read incoming mail, send new mail, and read sent mail.

Manage message drafts

Drafts can be created, updated, and deleted:

  • Gmail: use the provider’s native drafts object.
  • Outlook Mail: use AMPERSAND-drafts [new]
Workflow stepGmailOutlook Mail
Read the inboxAMPERSAND-messagesAMPERSAND-messages
Send a new emailAMPERSAND-messages (write)AMPERSAND-messages (write)
Read sent mailAMPERSAND-sentMessagesAMPERSAND-sentMessages
Create, update or delete a draftdraftsAMPERSAND-drafts

Start building
deep integrations today