π¬ Draft personalized pre-demo messages from demo bookings with Twain, Gmail, and Slack
β‘ 6 views Β· π¬ Lead Nurturing & AI Sales Agents
Description
Quick overview
This workflow triggers on new demo bookings (webhooks or Google Calendar), uses Twain to research the prospect and generate a personalized pre-demo sequence plus an AE brief, drafts the email in Gmail, optionally queues LinkedIn steps in HeyReach, and posts everything to Slack for review.
How it works
- Triggers when a demo booking is received via a webhook (generic, Chili Piper, or HubSpot) or when a new Google Calendar event is created.
- Normalizes the incoming booking payload into a consistent format, filters to demo meetings only, and de-duplicates repeat bookings across executions.
- If no LinkedIn URL is provided but an email exists, looks up a LinkedIn profile URL using Findymail and merges it back into the contact.
- If a usable work email or LinkedIn URL is available, calls the Twain API to generate contact research, an AE pre-demo brief, and a multi-step outbound sequence; otherwise it posts a βskippedβ notice to Slack.
- Builds an email-ready draft (subject and HTML body) plus previews for email and LinkedIn steps from the Twain output.
- If a work email exists, creates a Gmail draft and posts the brief and draft preview to Slack (or posts a βno draft createdβ message if Gmail fails); if no work email exists, posts a LinkedIn-only brief to Slack.
- If LinkedIn steps are configured, adds the lead to a HeyReach campaign with the LinkedIn message stored as a custom field and posts a confirmation to Slack.
Setup
- Create a Twain workspace and pre-demo campaign, then add your Twain API key (HTTP Header Auth) and set the Twain
campaign_idin the Demo Settings. - Connect your Slack bot token credential and set the target Slack channel name in Demo Settings.
- Connect your Gmail OAuth2 credential if you want the workflow to create email drafts.
- Choose and configure a booking source: enable the relevant webhook trigger(s) and copy the webhook URL into your booking tool, or connect Google Calendar OAuth2 for the calendar trigger.
- If you want automatic LinkedIn resolution, add Findymail API credentials (Bearer auth) and ensure the provider returns a LinkedIn URL in a field mapped by the resolver step.
- If you want LinkedIn steps queued, add your HeyReach API key and set
heyreach_campaign_id, and adjustemail_steps/linkedin_stepsin Demo Settings to control which sequence steps go to each channel.
Requirements
- Predefined campaign in Twain
π Nodes Used
HTTP Request, Slack, Webhook, Calendly Trigger, Gmail, Google Calendar Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File