Loading...
Loading...
Fetch agentic setup prompt categories from a connected Salesforce org using the Connect API. Use this skill to call GET /agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts. TRIGGER when: user asks to get, fetch, list, or show agentic setup categories, prompt categories, setup copilot categories, prompt library categories, available setup prompts, Agentforce prompt library, or copilot prompts. DO NOT TRIGGER when: user wants to create new categories, work with non-categories endpoints, or generate OpenAPI specs.
npx skill4agent add forcedotcom/sf-skills platform-agentsetup-categories-fetchGET /services/data/{apiVersion}/agenticsetup/categoriesfetchPromptssf org loginsf org loginfetchPrompts=truev67.0sf org display --json--target-orgsf api request rest /services/data/v67.0/agenticsetup/categories --method GETsf api request rest "/services/data/v67.0/agenticsetup/categories?fetchPrompts=true" --method GETcategoriesnamelabelpromptsreferences/api-response-schema.mdfetchPrompts=truefetchPrompts=falsefetchPrompts=trueprompts| Error | Meaning | Action |
|---|---|---|
| Success (exit 0) | 200 OK | Parse and display results |
| Feature not enabled for this org/user | Tell user the Agentic Setup Categories feature needs to be enabled — check Setup > Einstein/Agentforce |
| Session expired | Re-authenticate with |
| Endpoint not found | API version too old or feature not deployed to this org |
| Rule | Rationale |
|---|---|
Always use | curl bypasses |
| NEVER use SOQL queries | Categories are NOT in standard objects — only available via this Connect REST API |
| NEVER generate files (LWC, Apex, XML) | This is a data-fetching task, not a code generation task |
| Default to v67.0 unless user specifies | This is the min-version where the endpoint was introduced |
| Don't pass fetchPrompts unless asked | Reduces payload size; prompts can be large |
| Categories are sorted by label | The API returns them alphabetically — don't re-sort |
| Prompts are sorted by text | Within each category, prompts come alphabetically |
| File | When to read |
|---|---|
| When you need to understand the full response structure and field descriptions |