Prefer to manage agents as code? You can also define response agents as
YAML in your own GitHub repo and let Cotool sync them in. See Response
Agents as Code.
If you’ve had a successful chat session, convert it to an agent:
1
Complete Chat Session
Use the Chat interface to work through your use case
2
Review the Session
Make sure the chat achieved the desired outcome with good tool usage
3
Click 'Create Agent'
In the chat interface, click Create Agent from Chat
4
Auto-Generated Prompt
Cotool analyzes the chat session and generates: - System prompt based on
your conversation - Tool list from what was used - Planning mode based
on complexity
5
Refine and Save
Review the generated prompt, make adjustments, and save
Use the Builder to: - Test with sample inputs - Refine the system prompt
Verify tool usage - Check output format Don’t skip this step!
Testing before deploying prevents issues.
Make your agent autonomous: - Jira trigger - Runs when tickets are
created/updated - Slack trigger - Runs when mentioned in Slack -
Cron trigger - Runs on a schedule - Email trigger - Runs when
emails arrive
View all trigger types
Track your agent’s executions: - Success rate - Average duration - User
feedback - Evaluation scores
Agents improve over time: - Review failed executions - Incorporate user
feedback - Use AI suggestions to refine prompts - A/B test different
versions
Goal: Ad-hoc investigations via chatTools Needed:- search_splunk- list_sentinelone_alerts- get_okta_user- virustotal_*Trigger: Chat (no automatic trigger)Prompt Focus:- Help analyst investigate indicators- Provide context and enrichment- Suggest next steps- Generate summary reports
Fix: Make tool usage more explicit in system prompt: “Always start
by calling get_sentinelone_alert to fetch full alert details”
Output format is inconsistent
Fix: Provide a template in the prompt: “Format your response exactly
like this: [template]”
Agent is too slow
Fix: - Reduce number of granted tools - Set planning mode to never
Remove verbose context documents - Check if tools themselves are slow
(API performance)
Agent makes wrong decisions
Fix: - Add decision criteria to prompt - Provide examples of
good/bad decisions - Check if context documents have necessary info -
Verify tool outputs are correct
Was this page helpful?
⌘I
Assistant
Responses are generated using AI and may contain mistakes.