n8nWorkPlanningAI score · 74/100AI-assisted edit · no obvious prompt-injection riskn8n.io

Manage Outlook Calendar via Slack with an OpenAI-Powered Assistant

Slack @mention → n8n AI Agent → Outlook calendar search/create → Slack reply

Some experienceStepsWorkflowPromptTip
Who
Teams that want to query or manage Outlook calendars from Slack using natural language
You get
@mention a bot in Slack to search, browse, and create Outlook calendar events via an AI agent
You need
n8n · Slack

Constraints

Import the official n8n template, configure Slack, Outlook, and OpenAI credentials, set the Slack App Event Subscription to the n8n production webhook, then activate the workflow.

What they did

Author jimleuk published this workflow template on the n8n platform to demonstrate connecting Slack messages to Outlook Calendar operations through an AI Agent node, enabling natural-language queries and event creation.

How it went

Template published on 2025-04-06 with 1759 views at time of collection (author_report).

Worth knowing

If not using Slack, the template can be adapted for Teams with extra configuration. An overloaded agent with too many tools may get confused; consider splitting into multiple agents. Simple Memory isolates sessions by user and timestamp, but multi-turn conversations need custom extension. The exact Outlook calendar permission scope (personal/shared/organization) is not specified and should be verified during deployment.

Steps

  1. Configure Slack App Event Subscriptions

    Go to https://api.slack.com/apps and create or select your App. Under Features > Event Subscriptions, enable Enable Events. Enter the production webhook URL of this n8n workflow (the workflow must be active and publicly accessible). Slack will send a challenge request; the Respond to Webhook node in the workflow will verify it automatically. After verification, add app_mention under Subscribe to bot events and save changes.

  2. Import template and configure credentials

    Import template 3449 into n8n. Add and connect three credentials: Slack API (for trigger and reply), Microsoft Outlook OAuth2 (for calendar operations), and OpenAI API (for the AI Agent).

  3. Configure the AI Agent node

    Open the Outlook Calendar Assistant (AI Agent) node and confirm promptType is set to define. The systemMessage presets a calendar-assistant role and injects the current time. You may adjust it, but keep the time variable for accurate temporal queries.

  4. Connect Outlook Calendar Tools

    The AI Agent is already connected to three Outlook tool nodes: Search All Outlook Events, Create New Calendar Event, and Get Available Calendars. Verify each tool node has the correct credential bound, and confirm toolDescription is filled so the Agent can decide when to call each tool.

    Execution prompt · Source text。Search All Outlook Events node toolDescription

    Call this tool to consume Microsoft Outlook API and fetch all outlook calendar events across all available calendars for a given filter.

    Execution prompt · Source text。Create New Calendar Event node toolDescription

    Call this tool to consume Microsoft Outlook API and create a new outlook calendar event. Ensure the calendar ID exists before proceeding.

    Execution prompt · Source text。Get Available Calendars node toolDescription

    Call this tool to consume Microsoft Outlook API and fetch a list of available calendars.
  5. Safety tip: human confirmation before action

    Safety tip (editorial safety note, not the template author's practice): before the agent actually creates Outlook calendar events or replies to people in Slack, have a human confirm the event details and the reply.

  6. Activate the workflow and test

    Activate the workflow and set it to production mode. In a Slack channel, @mention the bot with a query such as: "What's included in the product team's sprint demo this week?" or "When is Jim & Nik's sales meeting with Microsoft?" The Agent will call Outlook tools and reply in the thread.

    Execution prompt · Source text。Example user query after @mentioning the bot in Slack

    What's included in the product team's sprint demo this week?

    Execution prompt · Source text。Example user query after @mentioning the bot in Slack

    Who's booked room 7 for this Thursday?

    Execution prompt · Source text。Example user query after @mentioning the bot in Slack

    When is Jim & Nik's sales meeting with Microsoft?

Prompt you can copy

Execution prompt · Source text。Send it through the chat/front end that calls the workflow webhook

This block is the prompt. Ads are never placed here.

What's included in the product team's sprint demo this week?

Before starting, ensure your Slack App is created and has permission to subscribe to bot events; your Outlook account needs calendar read/write access.

Source

Manage calendar events with Slack using OpenAI-powered Outlook assistant · jimleuk · n8n.io · 2025-04-06T18:35:30.751Z

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related