Install
openclaw skills install skills-sh:forcedotcom/sf-skills/platform-agentsetup-categories-fetchplatform-agentsetup-categories-fetch Fetch prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org. ## Scope In scope: - Calling GET /services/data/{apiVersion}/agenticsetup/categories via SF CLI - Passing the fetchPrompts query parameter…
openclaw skills install skills-sh:forcedotcom/sf-skills/platform-agentsetup-categories-fetchFetch prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org.
In scope:
GET /services/data/{apiVersion}/agenticsetup/categories via SF CLIfetchPrompts query parameter to include nested promptsOut of scope — delegate elsewhere:
sf org login separatelyThe agent needs:
sf org login)fetchPrompts=true)v67.0 in the URL with the user-specified version if provided.sf org display --json
Confirm the org is authenticated and extract the instance URL. If no default org is set, ask the user which org to target with --target-org.
Basic call (categories only):
sf api request rest /services/data/v67.0/agenticsetup/categories --method GET
With nested prompts:
sf api request rest "/services/data/v67.0/agenticsetup/categories?fetchPrompts=true" --method GET
The API returns a JSON object with a categories array. Each category has name, label, and prompts fields. See references/api-response-schema.md for the full response structure and examples for both fetchPrompts=true and fetchPrompts=false.
Present the results clearly:
fetchPrompts=true was used, show nested prompts under each categoryprompts arrays (means no prompts exist for that category)| Error | Meaning | Action |
|---|---|---|
| Success (exit 0) | 200 OK | Parse and display results |
FUNCTIONALITY_NOT_ENABLED | Feature not enabled for this org/user | Tell user the Agentic Setup Categories feature needs to be enabled — check Setup > Einstein/Agentforce |
INVALID_SESSION_ID | Session expired | Re-authenticate with sf org login |
NOT_FOUND | Endpoint not found | API version too old or feature not deployed to this org |
| Rule | Rationale |
|---|---|
Always use sf api request rest — never curl or raw HTTP | curl bypasses ~/.sfdx session tokens and requires manual Authorization headers, making it brittle |
| 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 |
When finishing, present:
| File | When to read |
|---|---|
references/api-response-schema.md | When you need to understand the full response structure and field descriptions |
91488fd1660b