Documentation Index
Fetch the complete documentation index at: https://agents.candu.ai/llms.txt
Use this file to discover all available pages before exploring further.
User input: “Create a segment of enterprise users who haven’t logged in for 30 days.”
Step 1: Resolve the criteria
The AI begins by looking up available traits before constructing anything. It doesn’t assume field names. It verifies them first.
Tool call 1: look up “plan” traits
Tool call 2: look up “last login” traits
The AI uses
autocomplete_query to verify real field names before building the payload. It doesn’t guess.Tool call 3: create the segment shell

Confirmation panel

Tool call 4: apply segment definition
Step 2: Test the segment
The wizard advances automatically. At step 2 the wizard prompts: “We’ve created your segment. Let’s test it: do you have a user ID or email in mind?”Tool call 5: look up user by email
Tool call 6: check membership
Execution summary
| Action | Endpoint | Policy | Time | Status |
|---|---|---|---|---|
autocomplete_query | byUserTraits q=plan | Automatic | 87ms | 200 |
autocomplete_query | byUserTraits q=last | Automatic | 92ms | 200 |
segments_create | POST /api/dashboard/segmentsDefinition | Confirm | 234ms | 201 |
segments_update | POST …?action=update | Confirm | 412ms | 200 |
autocomplete_query | byUserEmail | Automatic | 65ms | 200 |
segment_membership_get | usr_abc123 | Automatic | 143ms | 200 |
What if something fails

