ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Seed initial mentors in a tenant.
Args: request: The HTTP request. org: The organization/tenant identifier. user_id: The ID of the user initiating the seeding.
Returns: Response: A success message with details about the seeded mentors.
Raises: BadRequest: If the seeding process fails.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/mentor/seed/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/mentor/seed/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/mentor/seed/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "detail": "Successfully seeded 5 mentors in the tenant." }
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/mentors/{mentor}/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/mentors/{mentor}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/mentors/{mentor}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
Whether to force mentor to only use information within the provided documents.
Whether to show suggested prompts for the mentor or not. Note: Suggested prompts are created by tenant admins.
Whether to show suggested prompts for the mentor or not. Note: Guided prompts are created with an llm based on chat history.
Prompt template used to start a conversation with the user when greeting_type is proactive_prompt. This will be sent to the LLM so it can respond naturally
The prompt for the moderation system. This prompt must clearly distinguish between 'Approapriate' and 'Not Appropriate' queries.
Prompt to be used to alter or modify final llm response into any desired form.
Desired feedback to return to the user when their prompt is deemed inappropriate.
proactive_prompt
- Proactive Promptproactive_response
- Proactive Response
{ "name": "mentorAI", "platform": "main", "slug": "ai-mentor", "description": "Upbeat, encouraging tutor helping students understand concepts by explaining ideas and asking questions.", "allow_anonymous": false, "pathways": [], "suggested_prompts": [ "" ], "llm_provider": "IBLChatOpenAI", "system_prompt": "Wrap all responses in MARKDOWN formatted text.", "metadata": { "admin": true, "student": true, "featured": true, "allow_to_use_as_template": true }, "proactive_message": "", "moderation_system_prompt": "You are a moderator tasked with identifying whether a prompt from a user is appropriate or inappropriate. ", "enable_moderation": false, "enable_openai_assistant": false, "enable_total_grounding": false, "guided_prompt_instructions": "you are...", "enable_guided_prompts": true, "mcp_servers": [ { … } ], "enable_suggested_prompts": true, "safety_system_prompt": "You are a moderator tasked with identifying whether a message from an ai model to a user is is appropriate or inappropriate. If the message is immoral or contains abusive words, insults, damaging content, and law breaking acts, etc it should be deemed inappropriate. Otherwise it is deemed appropriate.", "safety_response": "Sorry, the AI model generated an inappropriate response. Kindly refine your prompt or try again with a different prompt.", "enable_safety_system": false, "categories": [ { … } ], "google_voice": { "id": 1, "name": "en-us", "provider": "google", "language": "English (US)", "description": "A deep male voice", "audio_url": "https://public.storage/iblm-public/audio/en-us-1.mp3" }, "openai_voice": { "id": 2, "name": "en-us-female", "provider": "openai", "language": "English (US)", "description": "A soft female voice.", "audio_url": "https://public.storage/iblm-public/audio/en-us-1.mp3" }, "created_by": "system" }
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/mentors/{mentor}/available-tools/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/mentors/{mentor}/available-tools/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/mentors/{mentor}/available-tools/' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ { … }, { … } ] ]