You are helping me build the following AI agent workflow. ## Goal Slack Slash Command AI Chat: Users type a slash command in public Slack channels to get an instant AI-generated answer based on their question. ## Specification - What it does: Type a slash command in public Slack channels to instantly receive an AI-generated answer tailored to your question. The system processes your input through OpenAI and posts the relevant response directly back into the chat for immediate visibility. - Trigger: Run manually (Manual ยท on slash command) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Slack: User interface and webhook trigger - n8n Webhook: Receiving slash command requests - OpenAI Chat Model: Generating chatbot responses ## Known pitfalls, handle each one explicitly in your implementation 1. The webhook URL must be publicly accessible via HTTPS so configure your n8n instance with proper domain and SSL certificates before linking it in Slack settings. 2. Command permissions require admin approval in Slack workspaces so ensure you have the necessary administrative rights to install and configure the app initially. ## Reference implementation https://n8n.io/workflows/2905 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/slack-slash-command-ai-chat-bot/ via usecasesforagents.com