πŸ“– Classify developer questions with GPT-4o from Slack to Notion & Airtable

⚑ 61 views Β· πŸ“– Internal Wiki & Knowledge Base

Description

πŸ“˜ Description:

This workflow automates the Developer Q&A Classification and Documentation process using Slack, Azure OpenAI GPT-4o, Notion, Airtable, and Google Sheets. Whenever a new message is posted in a specific Slack channel, the workflow automatically:

βš™οΈ What This Workflow Does (Step-by-Step)

🟒 Slack Channel Trigger – Developer Q&A Triggers the workflow whenever a new message is posted in a specific Slack channel. Captures message text, user ID, timestamp, and channel info.

🧩 Validate Slack Message Payload (IF Node) Ensures the incoming message payload contains valid user and text data. βœ… True Path β†’ Continues to extract and process the message ❌ False Path β†’ Logs error to Google Sheets

πŸ’» Extract Question Metadata (JavaScript) Cleans and structures the Slack message into a standardized JSON format β€” removing unnecessary characters and preparing a clean β€œquestion object” for AI processing.

🧠 Classify Developer Question (AI) (Powered by Azure OpenAI GPT-4o) Uses GPT-4o to semantically compare the question with an internal FAQ dataset. If a match is found β†’ Marks as answered and generates a canonical response If not β†’ Flags it as unanswered

🧾 Parse AI JSON Output (Code Node) Converts GPT-4o’s text output into structured JSON so that workflow logic can reference fields like status, answer_quality, and canonical_answer.

βš–οΈ Check If Question Was Answered (IF Node) If status == β€œanswered”, the question is routed to Notion for documentation; otherwise, it’s logged in Airtable for review.

πŸ“˜ Save Answered Question to Notion FAQ Creates a new Notion page under the β€œFAQ” database containing the question, AI’s canonical answer, and answer quality rating β€” automatically building a self-updating internal FAQ.

πŸ“‹ Log Unanswered Question to Airtable Adds unresolved or new questions into Airtable for manual review by the developer support team. These records later feed back into the FAQ training loop.

🚨 Log Workflow Errors to Google Sheets Any missing payloads, parsing errors, or failed integrations are logged in Google Sheets (error log sheet) for transparent tracking and debugging.

🧩 Prerequisites:

πŸ’‘ Key Benefits:

βœ… Automates Slack Q&A classification βœ… Builds and updates internal FAQs with zero manual input βœ… Ensures all developer queries are tracked βœ… Reduces redundant questions in Slack βœ… Maintains transparency with error logs

πŸ‘₯ Perfect For:

πŸ”— Nodes Used

Airtable, Google Sheets, Notion, AI Agent, Azure OpenAI Chat Model, Slack Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup