Skip to main content

ADL cheat sheet

ElementExample
UseCase Name Unique, lowercase, underscores.### UseCase: password_reset
Description Customer situation or query.#### DescriptionCustomer has forgotten their password and needs to reset it.
Steps (optional) Sequence of actions before solution.#### Steps- Ask for registered email - Send reset link
Solution Main recommended fix.#### SolutionGuide the customer through the reset process at https://www.example.com/reset-password.
Alternative Solution (optional) Backup if main fails.Try login recovery flow using phone number.
Fallback Solution (optional) Last resort, avoids loops.#### Fallback SolutionIf no access to email, escalate to Tier 2 support.
Examples (optional) Queries that trigger this use case.#### Examples- I forgot my password - Can’t log in

⚡ Advanced Features

Conditionals

Similar to if conditionals, they let you tailor responses based on context.

#### Solution
<isBusinessCustomer> Provide https://example.com/business/reset

<isPrivateCustomer>Only available when the isPrivateCustomer flags is true.

<!isPrivateCustomer>Only available when the isPrivateCustomer flags is NOT true.

<isBeta, isBusiness> Only available when the isBeta and isBusiness flags are true.

<isBusiness>
Multiple lines
Multiple lines
</>

<regex:.*business.*>Only available when the user input matches the regex ".*business.*".

Tool Calls

Calls or enforces external functions.

#### Solution
// by adding ! the systen will make sure the tool is called.
Call @password_reset_link()! to generate a reset link.

Use Case References

Reuse existing flows, stay modular.

#### Solution
If business customer, follow #business_customer_support

Static response


#### Solution
"This exact string will be the output."


✅ Workflow in 15 minutes:

  1. Define a Use Case.
  2. Add Steps, Solution, Fallback.
  3. Use Conditionals for variations.
  4. Add Tool Calls for actions.
  5. Reference other use cases for modularity.
  6. Test → Refine → Deploy.

👉 With ADL, engineers wire the engine once → business defines use cases forever after.