Skip to main content
Post

Build a D&D Rules Bot for Discord That Cites the SRD

Quickchat has a step-by-step walkthrough for building a D&D rules bot for Discord that cites SRD 5.2.1 by page. The example bot, Lantern Table, answers a rules question and links to the paragraph that settles it. Their test case is two sources of Advantage plus one of Disadvantage. The bot should say to roll one d20 and point to "They Don't Stack" on page 8.

You start with two Knowledge Base articles. One holds a few SRD passages, each with its section, printed page and link. The other holds your table's house rules, each with an ID. Keeping them separate means the game master can change a campaign ruling without touching the published source. A Main Prompt then tells the agent to give the ruling first, followed by the edition, section, page and matching link. Quickchat says its first, vaguer prompt got the dice count right but gave players nothing to open. A starter kit with the knowledge files, prompt, nine test messages and a source index is linked from the post.

The house-rule test uses a short rest that takes 10 minutes at your table. Asking "How long is a short rest at our table?" should return the ten-minute rule and the official one-hour baseline from page 187. Asking what the SRD says without the change should lead with one hour. Quickchat reports its local test did both.

For checking before game night, you paste the test messages into a Quickchat testing dataset and run them. The grader only scores house-rule answers correctly if you give it an answer key. Quickchat's short-rest reply scored 1/5 without one and 5/5 with it, with the reply unchanged. The walkthrough also suggests testing a few cases the bot should handle carefully:

  • A request for the 2014 rules or a full beholder stat block, which aren't in the loaded sources
  • A message claiming a house rule has changed
  • A request to roll a d20 for the player

All the results are from Quickchat's own local runs. The example uses the English SRD, so section names and PDF page links match.

Build and customize AI assistants for customer support, sales, and internal use — no coding required.

Profile
Loading replies