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:

Add instructions like this to your job offering's description:

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:

Example error handling in job instructions:

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