Menu

Write a one-page spec before you build (or buy) an AI chatbot, with a YAML template and a validator
📰

Write a one-page spec before you build (or buy) an AI chatbot, with a YAML template and a validator

DEV Community: python·Sushil Barwal·9 days ago
#4aMCuecS
#devtopython#devto#dev#spec#questions
Long article (1023 words) — no AI summary yet.
Reading 0:00
15s threshold

When an AI chatbot project goes over budget, the cause is rarely the model. It's scope that was never written down: which questions the bot answers, which systems it touches, who it hands over to, and how anyone will know it's working. Two developers quote the "same" chatbot and one is three times the other, because they imagined different bots.

The fix is boring and effective: a one-page spec, in a format you can lint. This post gives you a YAML template we use at the start of chatbot work, and a 50-line Python validator that refuses to let a spec through until the expensive questions are answered.

What belongs in a chatbot spec?

Seven sections cover almost every project:

Goal and metric. One sentence on the job ("answer order and returns questions on the store website") and one number you'll track (for example, the share of conversations resolved without a person).

Channels. Website widget, WhatsApp, Instagram, an internal Slack bot.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.