SKILL.md
iblai-api-agent-prompt
Manage an agent's prompts via the API: the built-in system / proactive / study / guided prompts and greeting settings (all saved through the single settings/ endpoint), plus full create/update/delete on the agent's suggested prompts. Use when editing what an agent says and suggests.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAIAPIKEYon every request. - Path vars:
{org}=$IBLAIORG,{username}=$IBLAIUSERNAME,
{mentor} = the agent's unique id (e.g. d17dc729-60fd-4363-81a0-f67d9318b03e).
- Settings writes go through one endpoint —
PUT …/users/{username}/mentors/{mentor}/settings/ — sending only the changed field(s).
- Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,
IBLAIUSERNAME, and IBLAIAPI_KEY.
Reads
- GET
…/users/{username}/mentors/{mentor}/settings/— system / proactive / study / guided prompt text,greetingmethod,enableguided_prompts. - GET
https://api.iblai.app/dm/api/search/orgs/{org}/users/{username}/prompts/?mentor={mentor}&limit=6&offset={n}&order_direction=asc— list suggested prompts. - GET
https://api.iblai.app/dm/api/ai-prompt/orgs/{org}/users/{username}/prompts/category/— prompt categories.
Writes
- PUT
…/mentors/{mentor}/settings/— update a built-in prompt (send one key):
``json { "systemprompt": "string", "proactiveprompt": "string", "studymodeprompt": "string", "guidedpromptinstructions": "string" } ``
- PUT
…/mentors/{mentor}/settings/— update greeting/guided settings:
``json { "greetingmethod": "PROACTIVEPROMPT|PROACTIVERESPONSE" } ` `json { "enableguided_prompts": "boolean" } ``
- POST
https://api.iblai.app/dm/api/ai-prompt/orgs/{org}/users/{username}/prompt/— create a suggested prompt:
``json { "prompt": "string (required)", "category": "string", "issystem": false, "mentor": "uuid", "platform": "string", "promptvisibility": "enum" } ``
- PUT
…/ai-prompt/orgs/{org}/users/{username}/prompt/{id}/— update a suggested prompt:
``json { "prompt": "string", "category": "string", "issystem": false, "promptvisibility": "enum|null" } ``
- DELETE
…/ai-prompt/orgs/{org}/users/{username}/prompt/{id}/— delete a suggested prompt (no body).
Example
Set the agent's system prompt (only the changed key is sent):
curl -X PUT \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/$MENTOR/settings/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"system_prompt": "You are a friendly study coach. Keep answers concise."}'
Notes
- Built-in prompts and greeting toggles save through
settings/— send only the
changed key, never the whole object.
- Suggested prompts are their own resource under
ai-prompt/…/prompt/; create
with POST, edit by {id} with PUT, remove by {id} with DELETE.
- The suggested-prompt list endpoint is paginated — page with
limitand
offset.