Qualifying Appointment Requests with AI & n8n Forms n8n Workflow Template

n8n workflow template · 19 nodes · OpenAI

Qualifying Appointment Requests with AI & n8n Forms is a free n8n workflow template that starts when someone submits an n8n form and works with OpenAI, Gmail and Google Calendar. It has 19 nodes, 4 of them AI nodes (OpenAI Chat Model, Basic LLM Chain and Text Classifier). The notes inside the workflow say: “Join the Discord or ask in the Forum!” To run it, you add your own credentials for Gmail OAuth2, Google Calendar OAuth2 and OpenAI API.

At a glance

Trigger
n8n Form Trigger (n8n Form Trigger)
Nodes
19
Apps
OpenAI, Gmail and Google Calendar
AI nodes
4
Credentials
3 types
Category
Email automation

Apps and integrations

  • OpenAI
  • Gmail
  • Google Calendar

Node types used

  • n8n Form Trigger
  • Form
  • Edit Fields (Set)
  • OpenAI Chat Model
  • If
  • Gmail
  • Google Calendar
  • Execute Workflow
  • Execute Workflow Trigger
  • Basic LLM Chain
  • Text Classifier

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Try it out!

This n8n template is a simple appointment scheduling workflow using n8n forms with AI thrown in the mix for good measure. It also uses n8n's wait for approval feature which allows the ability to confirm appointment requests and create events in Google Calendar.

How it works

  • We start with a form trigger which asks for the purpose of the appointment.
  • Instantly, we can qualify this by using a text classifier node which uses AI's contextual understanding to ensure the appointment is worthwhile. If not, an alternative is suggested instead.
  • Multi-page forms are then used to set the terms of the appointment and ask the user for a desired date and time.
  • An acknowledgement is sent to the user while an approval by email process is triggered in the background.
  • In a subworkflow, we use Gmail with the wait for approval operation to send an approval form to the admin user who can either confirm or decline the appointment request.
  • When approved, a Google Calendar event is created. When declined, the user is notified via email that the appointment request was declined.

Need Help?

Join the Discord or ask in the Forum!

1. Qualify Enquiries Using AI

Learn more about the text classifier

With n8n's multi-forms, you’re no longer stuck creating long, overwhelming forms. Instead, you have more flexibility and control to design smarter, more engaging form experiences.

In this demo, we’ll explore an appointment request scenario where a user wants to schedule a call to discuss their inquiry. However, not all inquiries require a meeting, making it a perfect use case for AI to pre-qualify the request. We can handle this validation using the text classifier node.

2. Split Form For Better User Experience

Learn more about the forms

Onboarding is a great reason to split your big form into smaller ones. Taking the user through a step by step process ensures a smooth experience and keeps them engaged throughout.

Here, we take the opportunity of the extra context space to display a terms and conditions which the user must agree to making their request. The next form then asks for desired date and time of the event.

3. Send Acknowledgement to User and Start Approval Process

Learn more about the Gmail node

Once all form steps are concluded, we can send a notification to the requester via email and in the background, trigger another email to the admin to initiate the approval process. The approval process works in a separate execution so doesn't interrupt the user's form experience.

4. Approve or Decline Appointment

Learn more about the Waiting for Approval

The Wait for Approval feature for Gmail is a special operation which allows for human-in-the-loop interaction in n8n workflows. In this example, the human interaction is the approval of the appointment request. The feature will put the workflow in a waiting state where a message is sent to the admin with 2 buttons: confirm and decline.

When the admin clicks on the confirm button, the workflow resumes from the Gmail node and a meeting event is created for the requesting user in Google Calendar.

When declined, a rejection email is sent to the requester instead.

Set your admin email here!

Nodes in this workflow

The 19 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. n8n Form Trigger (n8n Form Trigger)
  2. Form End (Form)
  3. Enter Date & Time (Form)
  4. Get Form Values (Edit Fields (Set))
  5. Terms & Conditions (Form)
  6. OpenAI Chat Model (OpenAI Chat Model)
  7. Has Accepted? (If)
  8. Send Receipt (Gmail)
  9. Wait for Approval (Gmail)
  10. Has Approval? (If)
  11. OpenAI Chat Model1 (OpenAI Chat Model)
  12. Create Appointment (Google Calendar)
  13. Send Rejection (Gmail)
  14. Decline (Form)
  15. Decline1 (Form)
  16. Trigger Approval Process (Execute Workflow)
  17. Execute Workflow Trigger (Execute Workflow Trigger)
  18. Summarise Enquiry (Basic LLM Chain)
  19. Enquiry Classifier (Text Classifier)

Credentials you need

  • Gmail OAuth2 – used by Send Receipt, Send Rejection and Wait for Approval
  • Google Calendar OAuth2 – used by Create Appointment
  • OpenAI API – used by OpenAI Chat Model and OpenAI Chat Model1

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us