← All N8N workflows
AI & researchAgentIfOpenAI Chat ModelMemory Buffer WindowMicrosoft Outlook Tool

Setting Up Slack App Event Subscriptions

Configured with Agent, OpenAI Chat Model, Memory Buffer Window, Microsoft Outlook Tool, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsOpenAI Chat ModelOpenAI Chat ModelMessagingSearch All OutlookEventsMicrosoft Outlook ToolMessagingCreate New CalendarEventMicrosoft Outlook ToolMessagingGet Available CalendarsMicrosoft Outlook ToolData storeSimple MemoryMemory Buffer WindowAI & modelsOutlook CalendarAssistantAgentMessagingSend ReplySlackWeb / APIRespond to ChallengeRespond To WebhookRoutingIs Auth Challenge?IfTransformGet MessageEdit FieldsTriggerOn BOT/APP MentionWebhook

Node categories in this workflow

  • AI & models
  • Messaging
  • Data store
  • Web / API
  • Routing
  • Transform
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Search All Outlook EventsMessagingMicrosoft Outlook Toolevent
Create New Calendar EventMessagingMicrosoft Outlook Toolevent / create
Get Available CalendarsMessagingMicrosoft Outlook Toolcalendar
Simple MemoryData storeMemory Buffer WindowSee node parameters
Outlook Calendar AssistantAI & modelsAgentSee node parameters
Send ReplyMessagingSlackSee node parameters
Respond to ChallengeWeb / APIRespond To WebhookSee node parameters
Is Auth Challenge?RoutingIfSee node parameters
Get MessageTransformEdit FieldsSee node parameters
On BOT/APP MentionTriggerWebhookSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • microsoftOutlookOAuth2Api
  • openAiApi
  • slackApi

Workflow notes

This n8n template demonstrates how easy it is to build an Outlook Calendar Assistant powered by an AI agent equipped with Tools.

This n8n template demonstrates how easy it is to build an Outlook Calendar Assistant powered by an AI agent equipped with Tools.

n8n's AI agents makes it easy to build powerful assistants which can interact with your existing services and tools. With little effort, you can expose such an agent to team members and colleagues though something like Slack and enable a company-wide productivity booster.

How it works

  • A Slack Trigger node is configured to catch "bot mentions" events in a designated channel.
  • The message is parsed using the Edit fields node to extract only the required attributes of the event.
  • An AI Agent equipped with Outlook Calendar Tools enables question and answer capability for the organisation's shared calendars and events.
  • The AI agent's response is sent back to Slack as a reply to the user's query.

How to use

  • The workflow is triggered via @mention-ing the bot followed by the query. eg. "@bot how many meetings does Paul have to attend to this week?"
  • To start listening to real mentions, you must activate the workflow and set it to production mode. You must use the production webhook URL for the event subscription.

Need Help?

Join the Discord or ask in the Forum!

1. Listen for Bot Mentions

1. Listen for Bot Mentions

Read more about Webhook Trigger

Example: @bot how many meetings does Paul have to attend to this week?

2. AI Agent with Outlook Calendar Tools

2. AI Agent with Outlook Calendar Tools

Learn more about the AI Agent node

This agent has 3 Outlook tools to search, browse and even create calendar events for the user. Agents are great in that we don't have to tell the agent what and when to use the tools - it'll make that decision on its own!

3. Reply to User

3. Reply to User

Learn more about the Slack node

Simple sends a reply back to the user answering their query. Of course, this is the simplest case and it'll be up to you to handle multi-turn conversation as needed.

Setting Up Slack App Event Subscriptions

Setting Up Slack App Event Subscriptions

  1. Go to https://api.slack.com/apps
  2. Create or Select your App
  3. Under Features, click into "Event Subscriptions"
  4. On this page, toggle on the "Enable Events" option
  5. Enter the production URL of this template - your workflow but be active and publicly accessible for this to work.
  6. Slack will issue a "challenge" request to this workflow which will respond and verify the subscription.
  7. If successful, under "subscribe to bot events", find and select the "app_mention" option.
  8. Hit "save changes" at the bottom of the page.
  9. This workflow should now trigger when your bot is "@mention" in the channel.
Setting Up Slack App Event Subscriptions

Setting Up Slack App Event Subscriptions

Purpose and structure

This folder contains the Setting Up Slack App Event Subscriptions workflow. Its executable nodes use agent, if, lmChatOpenAi, memoryBufferWindow, microsoftOutlookTool, respondToWebhook, set, slack, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

On BOT/APP Mention

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Webhook/0834_Webhook_Slack_Create_Webhook.json MIT; preserve source notices.

More in AI & research