Feeder DSL cheat-sheet
Audience: Manager / admin using AI Feeder
Objective: Write structured prompts TorQ compiles deterministically (no LLM required).
Requires: Feeder permissions (ai_feed_propose / ai_feed_apply); AI module on
TorQ Feeder turns a short grammar into a FeedPlan you preview, clarify, then apply. Prefer structured lines when you want exact counts and rates.
Property setup
Structured grammar
Line-oriented. Labels are case-insensitive. Blank lines are ignored.
| Line | Meaning |
|---|---|
PROPERTY: Name | Property display name |
CHECKIN: HH:MM | Check-in time (24h) |
CHECKOUT: HH:MM | Check-out time (24h) |
GSTIN: token | GST number (optional) |
TYPE: Name | count=N | rate=R | code=CODE | Room category; count required for apply; rate / code optional |
PROPERTY: Hill View Inn
CHECKIN: 14:00
CHECKOUT: 11:00
GSTIN: 27AABCU9603R1ZM
TYPE: Deluxe | count=10 | rate=3500 | code=DLX
TYPE: Suite | count=4 | rate=6500
Missing count= → Feeder asks a clarify question (does not invent inventory).
Bad times / empty type names → soft fail or clarify; Feeder never invents room counts from blank prompts.
Natural-language example
Property named Sunrise Lodge. Categories: Deluxe, Suite, Standard, Family. Create 10 Deluxe, 4 Suite, 12 Standard, 6 Family. Check-in 14:00, check-out 11:00. Base rates 3500 / 6500 / 2200 / 4800.
Clarify → preview → apply
- Paste structured or NL text into Feeder (Property Setup /
/torqFeeder). - If slots are missing (counts, rates), answer the clarify prompts on the same session.
- Review the preview ops (edit counts in the IR editor when shown).
- Apply — low-risk ops may commit; higher-risk ops queue for maker-checker.
CRM (short)
ACCOUNT: Acme Travels | type=company
CONTACT: Priya Shah | phone=9876543210 | email=priya@acme.example | primary=true
OPPORTUNITY: Group booking Apr | value=250000 | stage=Proposal
ACCOUNT/CONTACT/OPPORTUNITYlabels (case-insensitive).- Pipe fields:
type,phone,email,primary,value,stage. - Missing opportunity
value→ clarify amount (does not invent money).
F&B (short)
OUTLET: main | name=Main Restaurant
TABLE: T1-T12 | seats=4
STATION: grill | name=Grill
ITEM: Paneer Tikka | price=320 | station=grill | category=Mains
OUTLET/TABLE/STATION/ITEM.- Table ranges like
T1-T12; default seats4if omitted. - Missing item
price→ clarify (does not invent menu prices).
Flags
Feeder can be disabled with AI_FEED_ENABLED=false. Do not paste production secrets into Feeder prompts.