Library / Chatbots & Messaging Bots
Chatbots & Messaging Bots
Query a Confluence Knowledge Base from a Slack Bot with OpenAI
When a Slack direct message arrives, an OpenAI agent with memory searches the Confluence knowledge base and replies in Slack.
What it does
## Build n8n workflow to query Knowledge Base Building your own tools for an AI Agent to use is simple and straightforward, but requires that you build a second workflow and then connect it to this one by inputting the workflow ID from the workflow URL in the *Custom n8n KB Tool* sub node. This gives you the freedom to work with any tool, whether n8n has support for it or not. In this sample build, we have connected the AI agent to Confluence, which does not have a native built in n8n node. For this we use the HTTP request node and pointed it to Confluence's search api. It then returns a response that the AI agent uses to generate a final slack message response to the user.
The steps
- Verify Webhook
- OpenAI Chat Model
- No Operation, do nothing
- Window Buffer Memory
- Check if Bot
- Send Initial Message
- Delete Initial Message
- Send Message
- Receive DMs
- Call Confluence Workflow Tool
- AI Agent
Similar automations
RAG & Knowledge BasesChat with a Confluence Page Using an OpenAI Chatbot34 stepsRAG & Knowledge BasesChat with Confluence Pages Using GPT-4o-mini12 stepsDocuments, PDF & OCRCreate Confluence Pages from Templates via Webhook33 stepsCustomer Support & HelpdeskAnswer Support Queries from a Confluence Knowledge Base Tool13 steps