Snippets are reusable blocks of instructions that can be embedded in multiple runbooks. Create them once, then insert them wherever the same procedure should appear.Documentation Index
Fetch the complete documentation index at: https://docs.duckie.ai/llms.txt
Use this file to discover all available pages before exploring further.
What are Snippets?
Snippets are instruction fragments you can include in any runbook. They’re perfect for procedures that appear in multiple contexts:| Snippet | Used In |
|---|---|
| ”Verify Customer Identity” | Password Reset, Account Recovery, Billing Dispute, Order Cancellation |
| ”Check Subscription Status” | Billing Questions, Feature Access, Upgrade Requests |
| ”Standard Closing” | All customer-facing runbooks |
Why Use Snippets?
Consistency
The same procedure is executed the same way everywhere.Efficiency
Write once, use in many runbooks.Maintenance
Keep common instructions in one place instead of rewriting them in every runbook.Organization
Keep runbooks focused on their specific purpose.Creating Snippets
Name Your Snippet
Use a clear, action-oriented name:
- Good: “Verify Customer Identity”, “Process Refund”
- Avoid: “Snippet 1”, “Identity”
Write Instructions
Write the reusable instructions. These can include:
- Steps
- Conditional logic
- Tool references
Example Snippets
Verify Customer Identity
Check Subscription Status
Standard Closing
Using Snippets in Runbooks
Insert snippets from the runbook editor:Managing Snippets
Viewing Usage
Each snippet shows which runbooks use it:Editing Snippets
When you edit a snippet from the Snippets page:- Changes save immediately
- New runbook inserts use the updated snippet content
- Existing runbook embeds keep the content already saved in that runbook
Deleting Snippets
Before deleting:- Check which runbooks use the snippet
- Remove or replace the snippet references
- Then delete the snippet
Best Practices
When to Create a Snippet
Create a snippet when:- The same instructions appear in 2+ runbooks
- The procedure needs to be consistent everywhere
- You want to update the procedure in one place
Snippet Scope
Keep snippets focused:- Good: “Verify Customer Identity” — one clear purpose
- Avoid: “Handle Customer” — too broad
Naming
Use action-oriented names that describe what the snippet does:- “Verify Customer Identity”
- “Check Order Status”
- “Process Refund Request”
- “Standard Closing”
Documentation
Add comments in your snippet explaining:- When to use it
- What it accomplishes
- Any prerequisites
Next Steps
Create Runbooks
Build runbooks using snippets
Tools
Reference tools in snippets