Google Calendar Automations: Book Appointments from WordPress
After this setup, your AIWU workflows will automatically create, update, and manage Google Calendar events — triggered by WordPress events like form submissions, WooCommerce bookings, or new user registrations.
In this article: Connect Google Calendar · Calendar Actions · Booking Automation Example · Common Issues
Before You Start
You’ll need:
- AIWU plugin v4.9+ installed
- A working knowledge of AIWU Workflows — build your first workflow first
- A Google account with Calendar access
- Google Cloud project (free — takes 5 minutes to set up)
- Time needed: ~20 minutes
Step 1: Create Google Calendar API Credentials
1a. Create a Google Cloud project
Go to console.cloud.google.com → New Project. Name it “AIWU Integration”. Click Create.
1b. Enable the Google Calendar API
Go to APIs & Services → Library. Search “Google Calendar API”. Click it → click Enable.
1c. Create OAuth 2.0 credentials
Go to APIs & Services → Credentials → Create Credentials → OAuth client ID.
- Application type: Web application
- Name:
AIWU Plugin - Authorized redirect URI:
https://yoursite.com/wp-admin/admin-ajax.php?action=aiwu_google_oauth
Click Create. Copy the Client ID and Client Secret.
yoursite.com with your actual domain. The redirect URI must match exactly what you enter in Google Cloud Console.
Step 2: Connect Google Calendar in AIWU
Go to WordPress Admin → AI Copilot → Settings → Integrations → Google Calendar.
Enter your Client ID and Client Secret. Click Connect with Google.
A Google authorization window opens. Select your account, grant calendar permissions, and click Allow.
What you should see: A green “Connected” badge with your Google account name.
Step 3: Available Calendar Actions in Workflows
Open any workflow and click Add Action → Google Calendar. Available actions:
| Action | What it does | When to use |
|---|---|---|
| Create Event | Adds a new event to your calendar | Booking form submitted, consultation scheduled |
| Update Event | Modifies an existing event | Appointment rescheduled |
| Delete Event | Removes an event | Cancellation received |
| List Events | Fetches upcoming events | Check availability before confirming |
Create Event — Field Reference
| Field | Example value | Supports variables? |
|---|---|---|
| Title | Consultation: {{field_name}} |
✅ Yes |
| Start Date/Time | {{field_date}} {{field_time}} |
✅ Yes |
| End Date/Time | +1 hour from start | ✅ Yes |
| Description | {{ai_summary}} |
✅ Yes |
| Attendee Email | {{field_email}} |
✅ Yes |
| Calendar | Select from dropdown | No |
Practical Example: Consultation Booking Automation
This workflow fires when someone submits a booking form and creates a calendar event automatically:
- Trigger: Form Submitted (your AIWU booking form)
- Action 1: Generate Text — “Summarize this consultation request in 2 sentences: Name: {{field_name}}, Service: {{field_service}}, Notes: {{field_notes}}”
- Action 2: Create Google Calendar Event
- Title:
Consultation: {{field_name}} — {{field_service}} - Start:
{{field_date}} {{field_time}} - Description:
{{generated_text}} - Attendee:
{{field_email}}
- Title:
- Action 3: Send Email to
{{field_email}}— “Your appointment is confirmed for {{field_date}} at {{field_time}}.”
To build the booking form: Build a Lead Qualification Form.
Verify It Works
- Submit a test booking form (or manually trigger the workflow).
- Open your Google Calendar — you should see the new event appear within 10 seconds.
- Check the attendee email — they should receive a calendar invitation.
- In AIWU, go to Workflows → [your workflow] → Logs to confirm the “Create Event” action succeeded.
Common Issues
Problem: “Access blocked: AIWU Plugin has not completed the Google verification process”
Fix: During testing, click Advanced → Go to AIWU Plugin (unsafe). For production, submit your app for Google verification if you’re on a public site.
Problem: Event created but attendee didn’t receive invitation.
Fix: Check that the attendee email field is correctly mapped. In Google Calendar, invitations only go out if the attendee field is a valid email address.
Problem: “Invalid date format” error when creating events.
Fix: AIWU expects dates in YYYY-MM-DD format and times in HH:MM (24-hour). Make sure your form fields output dates in this format, or use a Format action to convert them first.
Problem: Connection drops after a few days.
Fix: Google OAuth tokens expire. Go to Settings → Integrations → Google Calendar and click Reconnect. This refreshes the token.
Still stuck? Check the troubleshooting guide or contact support.
What’s Next
- 🟢 Add the booking form: Lead Qualification Form — capture appointment requests on your site
- 🟡 Send confirmation emails too: Gmail & Outlook Integration — add email confirmation to the same workflow
- 🔵 Real-world example: AIWU for a Dental Clinic — complete booking automation use case
Last verified: AIWU v.4.9.2 · Updated: 2026-02-25
