Documentation Index
Fetch the complete documentation index at: https://docs.aiparlance.org/llms.txt
Use this file to discover all available pages before exploring further.
Workflows and events
Behavior layer (beta v0.1). Builtins: Specification. Example: crm-reference.aip.event
Domain event contract:
emit (do not redeclare event inside the workflow):
workflow
when trigger is required:
Task must be declared as an entity in the reference spec. In create, lead: Lead refers to the instance from the when trigger.
Durations: 15m, 1h, 1d in expressions and in dispatch Job after 15m.
Forward references are valid: emit may use event blocks declared later in the file.
lifecycle
Prefer when multiple hooks exist on one entity:
Conditions and errors
job and queue
dispatch SendReminder after 15m.
Best practices
- Declare every
entityused increate. - Use
emitfor publication; reserveevent { }for type definition. - Keep workflows short; split long logic into jobs.
- Prefer
lifecyclefor multiple hooks per entity.
crm-reference.aip contains workflow LeadReceived, event LeadAssigned, and entity Task.