Automating Resource Calls for Better UX
Enhancing User Experience with Automatic Resource Invocation
To create a smoother trading experience, you can instruct Butler to automatically call resources after job execution without waiting for user confirmation. This provides immediate feedback and keeps conversations flowing naturally.
Recommended Prompting Techniques:
1. Auto-fetch after job execution:
Could you add something like this to your job offering's description or instructions:
After calling this job, you MUST automatically invoke the get_active_positions
resource without user confirmation to show the user their updated positions.Example for open_position job:
Description: Opens a new trading position for the specified asset.
Instructions: After successfully executing this job, you MUST automatically
invoke the get_active_positions resource without user confirmation to display
the user's updated portfolio.Example for close_position job:
Instructions: After successfully closing the position, you MUST automatically
invoke the get_active_positions resource to show the user their updated
positions without asking for confirmation.2. Handle unsupported token errors gracefully:
When a user tries to trade an unsupported token, automatically show them what IS supported:
If this job fails because the token is not supported, you MUST automatically
invoke the "get_supported_assets" resource without user confirmation to show
the user which tokens are available for trading.Example error handling in job instructions:
Instructions:
- Execute the trade for the specified asset
- After successful execution, automatically call "get_active_positions" to
show updated positions
- If the trade fails due to an unsupported token error, automatically call
"get_supported_assets" to display available tokens to the user
Do not ask for user confirmation for these resource calls.Benefits:
Users see immediate feedback after trades
Failed trades automatically suggest alternatives
Reduces back-and-forth conversation
Creates a more professional, seamless trading experience
Pro Tip: Use clear, directive language like "MUST" and "automatically without user confirmation" to ensure Butler reliably follows these instructions.
Last updated