AgentMail and HubSpot automations
Set up an automation: when new spam complaint in AgentMail, create deal in HubSpot
Build it50agents builds it as an automation, and asks before anything goes outside.
AgentMail and HubSpot in practice
Used for
A “New Email Received” in AgentMail can open or update a deal in HubSpot.
Best template
“New Email Received” in AgentMail, then “Create Deal” in HubSpot. An inbound message signals new interest, and the deal gives someone ownership of the reply.
Watch out
“Update Deal” needs a deal ID and field values that an email event does not give you.
AgentMail and HubSpot templates
Pick one and Captain builds it with you.


When new spam complaint in AgentMail, create deal in HubSpot
Build this

When new email bounced in AgentMail, create deal in HubSpot
Build this

When new email delivered in AgentMail, create deal in HubSpot
Build this

When new email sent in AgentMail, create deal in HubSpot
Build this

When new email received in AgentMail, create deal in HubSpot
Build this

When new spam complaint in AgentMail, update deal in HubSpot
Build this

When new email bounced in AgentMail, update deal in HubSpot
Build this

When new email delivered in AgentMail, update deal in HubSpot
Build this

When new email sent in AgentMail, update deal in HubSpot
Build this

When new email received in AgentMail, update deal in HubSpot
Build this
AgentMail and HubSpot triggers and actions
Every one of both apps. A trigger starts the work; actions are the steps.
Triggers
5- New email receivedRuns when new email is received in selected inboxes or pods.
- New email sentRuns when new email is sent from a chosen inbox.
- New email deliveredRuns when a sent email reaches the recipient's mail server for selected inboxes or pods.
- New email bouncedRuns when a sent email bounces, with the bounce type and recipients.
- New spam complaintRuns when a recipient marks a sent email as spam.
No triggers match.
Actions
9- Forward emailForward an email from an inbox to new recipients with an optional note.
- Send emailSend a new email from an inbox with text or HTML, attachments and labels.
- Create inboxCreate a new email inbox with an optional username, domain and display name.
- Reply to emailReply to an email in its thread, to the sender or to everyone on it.
- Update email labelsAdd or remove labels on an email to track its state.
- Send draftSend a saved draft from an inbox and optionally change its labels.
- Find emailList, search or get emails in an inbox by sender, recipient, subject, label or date.
- Create draftCreate an email draft for review or scheduled sending, including replies and forwards.
- Find threadsFind conversation threads by search or filters; configure senders, recipients, subject, labels, and fields.
No actions match.
Triggers
18- Delete companyGet notified if any company is deleted in your account.
- Delete contactGet notified if any contact is deleted in your account.
- Update contact's lifecycle stageGet notified if lifecycle stage changed for any contact in your account.
- Ticket created or updatedRuns when ticket is created or updated
- Delete ticketGet notified if any ticket is deleted in your account.
- Deal deletedGet notified if any deal is deleted in your account.
- New product createdRuns when new product is created
- Delete productGet notified if any product is deleted in your account.
- Merge contactsGet notified if a contact is merged with another.
- Update contact's lead statusGet notified if lead status changed for any contact in your account.
- Merge companiesGet notified if a company is merged with another.
- Merge dealsGet notified if a deal is merged with another.
- Merge ticketsGet notified if a ticket is merged with another.
- New invoice createdTriggers when new invoice is created
- When a deal is created or updatedStarts the work when it happens in HubSpot.
- New or updated contactRuns when contact is created or updated. Choose properties and trigger type.
- When a company is created or updatedRuns the workflow automatically whenever a company is created or updated in the account.
- New task dueRuns when a HubSpot task becomes due, including task details and selected response properties.
No triggers match.
Actions
23- Create contactCreate a new HubSpot contact using the provided contact properties (email is required). Returns the created contact record.
- Update companyUpdate selected HubSpot company properties for a given company ID.
- Search companyLocate a company by name in HubSpot and return the selected company properties. Returns a message if no company is found.
- Get owner by email or by IDGets an existing owner by email or by id.
- Create companyCreate a new company record in HubSpot using the provided company properties.
- Create or update contactCreates new contact or update an existing contact by its email.
- Create dealCreates a Deal.
- Get invoice line itemsRetrieve line items associated with a specified invoice number.
- Create email engagementCreate an email engagement in HubSpot and associate it with specified contacts, companies, deals, or tickets.
- Create meeting engagementCreates new meeting engagement.
- Update contactUpdate an existing contact by its email.
- List all line itemsList all the line items.
- Find contactFind contacts by ID, query, or properties and return selected fields; set limit, sort, and properties.
- Search a productFetch product details by product name.
- Search a ticketSearch for tickets by filtering on properties
- Search a dealRetrieve Deal details based on dealname.
- Search invoicesRetrieves a list of invoices based on a specified date.
- Update dealUpdate specified properties of an existing HubSpot deal by providing the deal ID and new field values.
- Create engagementCreate an engagement (note, task, meeting, call, or email) in HubSpot and link it to contacts, companies, deals, or tickets.
- Send messageSend a text message into a HubSpot conversation thread using a chosen sender, channel, and recipient.
- Get noteRetrieve a HubSpot note by its ID and return selected note properties.
- Get deal notesRetrieve a deal and its associated notes by specifying the deal ID.
- Add notes to contactCreate one or more notes for a contact by ID or email, specifying note date and body.
No actions match.
Questions about AgentMail and HubSpot
What can start a AgentMail and HubSpot automation?
“New spam complaint”, “New email bounced”, “New email delivered”, “New email sent” and “New email received”.
Which other apps work with both AgentMail and HubSpot?
Freshsales Classic and Microsoft Excel. Each one has templates with AgentMail and with HubSpot, so a third app can join the same job.
All AgentMail integrations · All HubSpot integrations · Every app, A to Z