Shata Solutions
← Back to marketplace
Productivity

CRM Context Reply Draft

Draft Gmail replies using HubSpot deal stage, recent notes, and product context from your knowledge base.

Automation overview

What this automation does

This automation starts when sales rep stars Gmail thread or clicks draft-reply webhook. It hubspot process via hubspot, openai process via openai, x (twitter) drafts, and google docs drafts, then deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice referencing CRM context and Google Drive pricing sheet. Draft saved in Gmail fo. AI handles generation and decision logic in the middle of the flow.

Trigger
Sales rep stars Gmail thread or clicks draft-reply webhook
Main actions
HubSpot process via HubSpot → OpenAI process via OpenAI …
Final outcome
deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice…
Execution time
1–3 minutes
Apps used
6 integrations
AI-powered
Yes
Difficulty
Intermediate
AIIntermediate
Workflow diagram

End-to-end scenario flow

Read-only visualization of how data moves from trigger to final result.

Trigger
Gmail
Webhook received
Step 1
HubSpot
Process via HubSpot
AI
OpenAI
Process via OpenAI
Step 3
X (Twitter)
Drafts
Step 4
Google Docs
Drafts
Result
Google Docs
Workflow complete
Step-by-step

How each step runs

  1. 1
    GmailTrigger
    Webhook received

    Sales rep stars Gmail thread or clicks draft-reply webhook

  2. 2
    HubSpot
    Process via HubSpot

    Starred sales threads trigger a HubSpot lookup by contact email

  3. 3
    OpenAI
    Process via OpenAI

    Starred sales threads trigger a HubSpot lookup by contact email

  4. 4
    X (Twitter)
    Drafts

    deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice referencing CRM context and Google Drive pricing sheet. Draft saved in Gmail fo

  5. 5
    Google Docs
    Drafts

    deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice referencing CRM context and Google Drive pricing sheet. Draft saved in Gmail fo

  6. 6
    Google Docs
    Workflow complete

    deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice referencing CRM context and Google Drive pricing sheet. Draft saved in Gmail fo

Apps used

Connected applications

Gmail

Drafts

Webhooks

Process via Webhooks

HubSpot

Process via HubSpot

OpenAI

Process via OpenAI

X (Twitter)

Drafts

Google Docs

Drafts

Summary

Automation summary

Trigger
Sales rep stars Gmail thread or clicks draft-reply webhook
Inputs
Sales rep stars Gmail thread or clicks draft-reply webhook, Business Name, Notification Email, Timezone
Outputs
deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice referencing CRM context and Google Drive pricing sheet. Draft saved in Gmail fo, X (Twitter) drafts, Google Docs drafts
Business goal
Automate crm context reply draft end-to-end with accurate app routing.
Execution frequency
Real-time on event
Estimated runtime
1–3 minutes
Error handling
Failed steps retry up to 3 times with exponential backoff; persistent failures notify your configured channel and log to the run history.
Dependencies
Gmail, Webhooks, HubSpot, OpenAI, AI provider API
Benefits

Why use this automation?

Save ~4 hours/week

Remove repetitive steps from CRM Context Reply Draft so your team focuses on high-value work.

Reduce manual work

Connected apps sync data automatically instead of copy-paste between dashboards.

Prevent human errors

Standardized logic runs the same way every time, with retries on failure.

Requirements

What you need to get started

Required apps

  • Gmail
  • Webhooks
  • HubSpot
  • OpenAI

Required accounts

  • Active Gmail workspace with API access
  • Active Webhooks workspace with API access
  • Active HubSpot workspace with API access
  • Active OpenAI workspace with API access
  • Shata Automation workspace (free tier supported)

Required API keys

  • OpenAI or compatible AI provider API key
  • OAuth tokens for each connected integration

Permissions

  • Read access on trigger sources (forms, sheets, webhooks, or CRM objects)
  • Write access on destination apps (email, chat, CRM, or storage)
  • Permission to send prompts to your AI provider

Estimated setup time

  • 30 min including app authorization and test run
  • Difficulty: Intermediate

Optional apps

  • OpenAI (optional)
  • X (Twitter) (optional)
  • Google Docs (optional)

Automation runtime

Activate this template

PartialSome steps run in preview until their integrations go live.

Connect required apps via OAuth or API keys. Credentials are encrypted server-side. Dev test runs mock external actions when connections are missing.

Draft
0%
Activation readiness

Est. setup time: ~13 min

Required connections

  • Gmail(required)
    Missing
  • HubSpot(required)
    PreviewHubSpot: workflow actions run in preview
    Missing
  • OpenAI(required)
    Missing
  • x(required)
    Previewx: workflow actions run in preview
    Missing
  • Missing connection: Gmail
  • Missing connection: HubSpot
  • Missing connection: OpenAI
  • Missing connection: x
Manage all connections →View all installations →

Workflow summary

Trigger
Sales rep stars Gmail thread or clicks draft-reply webhook
Steps
6 nodes
Required apps
4
Optional apps
1

Trigger

Webhook trigger

Activate this workflow to provision the trigger endpoint.

Run history

No runs yet. Install the template and run a test, or activate to receive webhook/schedule runs.

AIFreeIntermediatePartial30 min setup3.94.1k installs · 307 reviews
Customize for My Business
Analytics

Template performance

7.6k
Views
4.1k
Installs
278
Favorites
3.9
Avg rating
54.2%
Conversion
30 min
Setup time
92%
Success rate
115
Trending score
Most used integrations
GmailHubSpotOpenAI

Starred sales threads trigger a HubSpot lookup by contact email—deal stage, last activity, open objections. GPT-4o drafts a reply in brand voice referencing CRM context and Google Drive pricing sheet. Draft saved in Gmail for human review; never auto-sends without approval toggle.

Some steps run in preview until their integrations go live.

Required apps
GmailLiveHubSpotPreviewOpenAILiveX (Twitter)Preview
Optional apps
Google DriveTest-only
All integrations
GmailHubSpotOpenAIX (Twitter)Google Drive
Workflow preview

How CRM Context Reply Draft runs

1
Trigger
Build context bundle
2
Process
AI decision layer
3
Action
gmail
4
Notify
Alert & log
GmailHubspotOpenaiXGoogle Drive
Setup steps

Get started in 5 steps

  1. 1
    Wire CRM and Gmail

    Connect Gmail, HubSpot, Google Drive pricing doc, OpenAI.

  2. 2
    Build context bundle

    Pull deal, contact, last 3 activities, and open tasks into prompt context.

  3. 3
    Draft with guardrails

    AI must cite CRM facts only; flags unknown SKUs for human edit.

  4. 4
    Save as Gmail draft

    Draft inserted in thread with `AI-assisted` internal note in HubSpot.

  5. 5
    Track usage

    Log draft acceptance rate to Google Sheets for prompt tuning.

Variables

Configurable settings

VariableTypeDefaultRequired
Business NametextYour BusinessYes
Notification EmailemailYes
TimezoneselectYes
Brand VoiceselectProfessionalNo
Gmail Search Querytextis:unreadNo
AI prompt

System prompt template

Draft a professional reply using CRM context. Never invent pricing. Mark uncertain claims with [verify].
FAQ

Frequently asked questions

Auto-send mode?

Optional for tier-1 support macros only; sales defaults to draft-only.

Salesforce?

Swap HubSpot connector; same context bundle pattern.

Get started

Customize CRM Context Reply Draft for your business

Our team can adapt this template to your exact workflow, apps, and brand requirements.