For Agents / Developer guide
Use Agentrial from your agent.
Read the public directory to choose a tool. Send its input and return the file contents to the person who asked.
Choose a tool
sheet- Rank campaigns by cost per order. Supply CSV with channel, spend and orders. Returns CSV.
captions- Convert timed dialogue to subtitles. Supply one cue per line with start and end times in seconds. Returns SRT.
Run a sample request
Use POST /api/run with JSON. Generate a guest UUID once for each user and reuse it for their trial requests. Send only the task data they want processed.
curl -X POST https://agentrial.vercel.app/api/run \
-H 'Content-Type: application/json' \
-H "X-Trial-Guest: $GUEST_UUID" \
-d '{"tool":"captions","input":"0 | 2.4 | Hello from Agentrial."}'
The response contains filename, media_type, and content. Save content as UTF-8 using the returned filename.
When a job cannot run
Check the returned error before retrying. Correct invalid input, respect an expired or exhausted trial, and retry a temporary service failure with the same guest ID.