How success create an appointment in google calendar throught AI chat model

my workflow alway show “It looks like there are no available time slots for May 25, 2025. Could you please provide me with a new preferred appointment day?”. How to make success make a appointment?
** AI Chat model: openrouter gpt-4o-mini or google gemini-2.0-flash

for example:
can you help me make an appointment for May 25, 2025
there are no available time slots for May 25, 2025.

But when i fill all data
for example:
Can you help me make an appointment for May 24, 2025, Time: from 2:00 p.m. to 3:00 p.m. full name: test, email: [email protected], mobile number: 98765432, and how many people: 4

it can success make a appointment :expressionless:

i think my workflow should be:
my need step:

  1. can you help me make an appointment for May 24, 2025
    AI: I need a time range to check the calendar availability. What is the start and end time you are looking for?

2 .time: 2:00 p.m. to 3:00 p.m
AI: What is your name, email, and mobile number?
How many people will be attending?

  1. full name: test, email: [email protected], mobile number: 98765432, and how many people: 4
    AI: Success create an appointment.

I hope your can get my mean.

Thank you very much.

i reference for n8n youtube clip to do the workflow.

Information on your n8n setup

  • **n8n version: 1.89.0
  • **Database (default: SQLite): no
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • **Operating system: windows 10

the workflow is normal sometime. :expressionless:

But when i use webhook to connect LINE messager. it is not work. it alway can not create an appointment.

Line Messager step:
For example:

  1. can you help me make an appointment for May 27, 2025, Time: from 2:00 p.m. to 3:00 p.m.

AI:
I see that you’re interested in booking an appointment on May 27, 2025, between 2:00 p.m. and 3:00 p.m. Fortunately, that slot is still available.

To proceed with the booking, I’ll need a bit more information:

  • Your full name
  • Your email address
  • Your mobile number
  • How many people will be attending?
  1. full name: Test, email: [email protected], mobile number: 98765432, and how many people: 4

AI: Okay Test. Before creating the appointment, I need to know the day you would like to book an appointment for?

it can not remember which day i need create an appointment. :expressionless:

For this question:

What’s your memory key?

In Line Message, you can use the Line UID as the memory key.
In this way, it will remember the chat history.

The chat trigger generates its own session ID automatically,

but when you use the Line Message webhook, that session ID isn’t included.

my use Line messager message id for simple memory session ID. if i do not use Line Message ID. What number is for simple Memory Session ID?

message id is changing for every message. So next message will become a new seesion so it can not remember anything.

I will suggest use the destination id.
Or the source.userId.

1 Like

session id must same for every message?

Yes. So my recommendation is source.userId


session is a concept. Like the user start the conversation and when it goes to end.

It is a session.

But from what I know Line didn’t provide this kind of data. So maybe userId is a better choice

i destination id for simple memory session id. The workflow success make an appointment.

The simple memory session id must be same. So, simple memory can member message.

Thank you very much.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.