← Back to directory
Customer Support Medium to set up AI workflow Onboard/Guide

New Customer Onboarding

Source reviewed Updated 2026-07-07

On new customer signup, the agent schedules a welcome meeting, generates a personalized HTML email via Gmail.

What it does

You get a scheduled welcome meeting and a personalized email immediately after signing up. The system automatically pulls your owner details from HubSpot, uses AI to set up the meeting and craft the message via Gmail, then assigns you for tracking.

Step by step

  1. Configure the HubSpot webhook or trigger to listen for new contact creation events.
  2. Set up the HTTP request node to fetch owner details from the HubSpot API using the retrieved contact ID.
  3. Define the Gmail SMTP credentials and OAuth scopes required for sending emails programmatically.

Where the LLM does the work

  • Prompt the OpenAI model to generate a personalized welcome email body based on the customer's industry and name.
  • Instruct the AI agent to interpret natural language meeting preferences into specific calendar event parameters.
  • Use the structured output parser to ensure the generated HTML is valid and safely formatted for Gmail.

Watch out for

OpenAI might generate malformed HTML tags, validate the output structure before passing it to the Gmail send node.
Calendar conflicts can cause scheduling errors, add error handling to retry with alternative time slots if the first attempt fails.

Tools that fit

HubSpot Service Retrieve owners and assign customer contacts
OpenAI Chat Model LLM Generate personalized welcome email text
Gmail Service Send the formatted HTML welcome email
AI Agent LLM Schedule welcome meetings in calendar tools

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
New Customer Onboarding: On new customer signup, the agent schedules a welcome meeting, generates a personalized HTML email via Gmail.

## Specification
- What it does: You get a scheduled welcome meeting and a personalized email immediately after signing up. The system automatically pulls your owner details from HubSpot, uses AI to set up the meeting and craft the message via Gmail, then assigns you for tracking.
- Trigger: Triggered by an event (Event · on new contact in HubSpot or webhook)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - HubSpot: Retrieve owners and assign customer contacts
  - OpenAI Chat Model: Generate personalized welcome email text
  - Gmail: Send the formatted HTML welcome email
  - AI Agent: Schedule welcome meetings in calendar tools

## Known pitfalls, handle each one explicitly in your implementation
1. OpenAI might generate malformed HTML tags, validate the output structure before passing it to the Gmail send node.
2. Calendar conflicts can cause scheduling errors, add error handling to retry with alternative time slots if the first attempt fails.

## Reference implementation
https://n8n.io/workflows/3958 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/automate-new-customer-onboarding/ via usecasesforagents.com

Frequently asked questions

Can I use a different CRM than HubSpot?

Yes. HubSpot is only the example CRM in this recipe. The same flow works with Agile CRM, Attio, Close CRM and Freshworks CRM. Swap the CRM connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Built for sales teams who want the prep work done before they pick up the phone.

Support teams facing the same queue pressure can run this exact pattern on their tickets.

Seen in the wild

← Back to directory