Quick overview
This workflow listens for new HubSpot contacts created from form submissions, uses Anthropic Claude to draft a personalized first-response email, sends it via Gmail with your signature, logs the email on the HubSpot contact timeline, and alerts your sales team in Slack.
How it works
- Receives a webhook from HubSpot when a new contact is created.
- Normalizes the incoming events and ignores non-contact-creation events and contacts created via CSV import.
- Fetches the contact’s newest form submission details from HubSpot and continues only if the contact has at least one form submission.
- Extracts key lead fields (name, email, company, job title, message, website) and combines them with your predefined business context.
- Sends the lead context to Anthropic Claude to generate a JSON reply containing an email subject, HTML body, and one-sentence lead summary.
- Retrieves your Gmail “sendAs” settings to append the correct Gmail signature and sends the email to the lead via Gmail.
- Logs the email engagement on the HubSpot contact and posts a Slack message with the lead details, sent subject, and Claude summary.
Setup
- Create a HubSpot private app with CRM contacts read/write scopes, add its app token credential in the HubSpot steps, and configure a contact.creation webhook subscription pointing to this workflow’s production webhook URL.
- Add an Anthropic API credential and ensure the selected Claude model is available to your account.
- Connect a Gmail OAuth2 credential with permission to read Gmail settings and send email, and ensure your Gmail signature is configured in Gmail.
- Connect a Slack OAuth credential with chat posting permissions, invite the bot to your target channel, and set the channel name in the Reply Settings.
- Update the Reply Settings values (company name, sender name, what you do, booking link, and reply guidelines) to match your business before activating.