Testing & Error Handling
Testing & Error Handling
Testing & Error Handling
Building a plugin is only half the work. Before you publish, you need to verify it works — and plan for what happens when it doesn’t.
How you test depends on what you built.
Compound actions have a Test button in the Agent Studio editor. Click it to:
This is the fastest way to validate your logic before wiring the compound action into a plugin.
This is also how you test scheduled trigger plugins — since you can’t manually fire a schedule, test the compound action directly using the Test button.
Script actions also have a Test button in the editor. Enter your input variables and run the script to verify the output before using it in a compound action.
Conversational plugins must be tested through the AI assistant — not through Agent Studio. After publishing your plugin:
Plugins take approximately 10 seconds to deploy after publishing. If your plugin doesn’t trigger immediately, wait a moment and retry.
For webhook-triggered plugins:
For details on webhook security and listener configuration, see System Triggers.
When an HTTP action returns a non-2xx status code, the action fails. Common scenarios:
HTTP actions have a 60 second timeout. If your API is consistently slow, work with the API provider to optimize response times, or consider breaking the request into smaller calls.
Use try_catch to handle failures gracefully:
You can filter by specific status codes using on_status_code, or catch all errors by omitting it.
Use raise to explicitly throw an error and exit the compound action when a precondition isn’t met.
Be aware of the execution time limits:
If an action might exceed 30 seconds, consider running it asynchronously — uncheck Wait for Completion on the action activity, or use delay_config in compound actions.
After executing a plugin, check the Logs section in Agent Studio for detailed execution traces. Key log types:
For webhook-specific debugging, see Webhook Logs Troubleshooting Guide.
Before making your plugin available to users: