← Back to directory
Operations Medium to set up Automation Schedule/Coordinate

WhatsApp Appointment Scheduling with Google Calendar

Source reviewed Updated 2026-07-07

Customers book via WhatsApp link; the system checks availability, creates a Google Calendar event, and logs details in Postgres.

freelancers and consultantsE-commerce Operator

What it does

Book appointments directly via WhatsApp by selecting your preferred time slot from available options. The system instantly confirms your selection by creating the event in your calendar and saving your details securely.

Step by step

  1. Configure the WhatsApp Business Cloud webhook to listen for incoming messages and extract user input.
  2. Define the PostgreSQL schema with columns for customer name, appointment date, time slot, and status.
  3. Set up Google Calendar API credentials with read/write scopes for the specific calendar resource.

Where the LLM does the work

  • Generate the natural language prompt that guides users to reply with their name and desired date in a clear format.
  • Write the code logic to parse unstructured user text into valid datetime objects for availability checking.
  • Craft the confirmation message template that dynamically inserts the booked time slot details.

Watch out for

WhatsApp requires verified templates for outbound messages so you must pre-approve your booking flow text before deploying.
Timezone mismatches between user input and Google Calendar can cause double bookings so always normalize timestamps to UTC before checking availability.
Postgres transactions must be atomic to prevent calendar events from being created if the database save fails so wrap both operations in a single transaction block.

Tools that fit

WhatsApp Business Cloud Service Collect user input and send reservation links
Google Calendar Service Check availability and create events
Postgres Service Store booking data for future reference
Code API Process logic and handle scheduling constraints

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
WhatsApp Appointment Scheduling with Google Calendar: Customers book via WhatsApp link; the system checks availability, creates a Google Calendar event, and logs details in Postgres.

## Specification
- What it does: Book appointments directly via WhatsApp by selecting your preferred time slot from available options. The system instantly confirms your selection by creating the event in your calendar and saving your details securely.
- Trigger: Triggered by an event (Manual · on demand)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - WhatsApp Business Cloud: Collect user input and send reservation links
  - Google Calendar: Check availability and create events
  - Postgres: Store booking data for future reference
  - Code: Process logic and handle scheduling constraints

## Known pitfalls, handle each one explicitly in your implementation
1. WhatsApp requires verified templates for outbound messages so you must pre-approve your booking flow text before deploying.
2. Timezone mismatches between user input and Google Calendar can cause double bookings so always normalize timestamps to UTC before checking availability.
3. Postgres transactions must be atomic to prevent calendar events from being created if the database save fails so wrap both operations in a single transaction block.

## Reference implementation
https://n8n.io/workflows/5855 (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/whatsapp-appointment-scheduling-with-google-calendar/ via usecasesforagents.com

Frequently asked questions

Can I use a different Messaging than WhatsApp?

Yes. WhatsApp is only the example messaging in this recipe. The same flow works with ClickSend API, Discord, Google Chat and LINE Messaging API. Swap the messaging 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 freelancers and consultants juggling this across every client, not just one.

Also fits E-commerce Operator.

Seen in the wild

← Back to directory