Latenode

Create an AI-powered website chatbot with Outlook calendar integration

This template starts when your website chat widget POSTs a message to a Latenode webhook. ChatGPT reads the intent.

JavaScript calls Microsoft Graph to list free slots on the Outlook calendar and to create an event when the visitor picks a time. Put the Graph token in that JavaScript node. ChatGPT is a Latenode AI step. Copy the webhook URL into the chat widget and return the reply on the webhook.

Updated Sep 16, 2026Est. run: 34sEst. cost: $0.0022
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Answers website chat from a Latenode webhook
  • Writes replies with ChatGPT
  • Reads and books Outlook time through Microsoft Graph
  • Stores the Graph token in the JavaScript node

How it works

1
Trigger

Receive the chat message

The scenario starts when the website chat widget POSTs a message to the Latenode webhook.

2
AI

Read the intent

ChatGPT decides whether the visitor is asking a question or booking time.

3
Action

Check Outlook with Microsoft Graph

JavaScript calls Microsoft Graph calendarView for the window you set. Put the Graph token in that JavaScript node.

4
Action

Book and reply

When the visitor picks a slot, JavaScript creates the Graph event. The webhook returns the ChatGPT reply and the times.

Setup guide

1

Add the webhook

Add a webhook trigger and copy its URL into your website chat widget. Return the assistant reply with a webhook response.

2

Create a Microsoft Graph token

In Azure, grant calendar read and write access and issue a token. Put that token in the JavaScript node or in Latenode secrets that node can read.

3

Wire ChatGPT

Send the visitor message to ChatGPT. Ask it to classify booking vs a general question and to write a short reply. ChatGPT is a Latenode AI step.

4

List slots and create events

In JavaScript, call Microsoft Graph calendarView for a window such as the next 7 days. Create an event when the visitor confirms a slot. Map the reply onto the webhook response.

Requirements

A website chat widget that can POST to a Latenode webhook
A Microsoft 365 mailbox whose calendar Microsoft Graph can read and update
A Graph token with calendar read and write access, stored in the JavaScript node or secrets

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.