CHATBOTS
Discord /ask slash command that answers from a Postgres knowledge base
Gives members a /ask slash command that retrieves the most relevant FAQ entries from your Postgres knowledge base and returns a concise, cited reply right in the channel.
How it runs
The automated pipeline, trigger to output.
- TriggerMember runs /ask slash commandDiscord
- ActionQuery Postgres knowledge base for matchesPostgres
- LogicDid the search return any rows?
- ActionSummarize matched entries into a cited answerOpenAI
- OutputReply to the slash command with the answerDiscord
What it does
Adds an on-demand /ask command to your server. Instead of scanning every message, the bot only responds when a member explicitly invokes it. It searches a Postgres-backed FAQ table for the closest matching entries and composes a short answer that quotes the source rows, so members get an authoritative reply without pinging a human.
When to use it
When your FAQ content is larger than a single pinned post and lives in a structured store. The explicit slash command keeps the bot quiet in busy channels and avoids reacting to every casual message, which is better for high-traffic communities.
How it works
- 1A member runs the /ask slash command with their question as the argument.
- 2The bot queries the Postgres knowledge_base table for entries matching the question keywords.
- 3A branch checks whether any matching rows were returned.
- 4If matches exist, an LLM call summarizes them into a concise answer that cites the entry titles.
- 5The bot replies to the slash command with the answer.
- 6If no matches exist, it returns a friendly fallback inviting the member to open a support thread.
Set it up
What you configure once, before turning it on.
- 1Connect DiscordCommunity channels + voice + bots.
- 2Connect PostgresAny Postgres URL — query, write, migrate.
- 3Connect OpenAIModels, embeddings, files.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Chatbots workflows
Discord Onboarding Completion to CRM Sync
The moment a member finishes Discord onboarding, captures their submitted profile answers, creates or updates a contact in HubSpot.
Discord FAQ-Gated Role Concierge
Greets each new Discord member in a private onboarding thread, walks them through required FAQ steps one at a time.
Discord FAQ Free-Text Answer Grader
When a member submits a free-text answer in their onboarding thread, an agent grades it against the canonical FAQ knowledge base, replies with targeted feedback.
Discord verify-button onboarding via web form webhook
Receives a completed external verification form by webhook, matches it to the Discord account, grants the verified role, and confirms back to the member in Discord.
Discord intro-gated role granting concierge
Watches your #introductions channel, uses AI to confirm a new member's intro is genuine and complete, then auto-assigns the verified Member role and welcomes them.
Daily Discord Digest of Repeated WAF False-Positive Reports
Each morning, scans logged Discord WAF reports in Postgres, groups them by the Cloudflare rule that keeps firing.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
