Process bulk questions from CSV
The agent reads a CSV file containing multiple questions, submits them in bulk to 50heads, and retrieves the JSON results for all completed questions, ensuring no duplicate charges via idempotency.
How it works
The agent reads the input CSV file to extract question texts and options. It uses the CLI or API to submit these questions, leveraging the idempotency key feature to prevent duplicate charges if the script is re-run. The agent waits for the bulk operations to complete and then fetches the answers for each question ID. It outputs the results in a structured JSON format. The agent should check that the CSV format matches the expected schema and that the user has sufficient credits.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
I have a file asks.csv with questions. Submit all questions in the file to 50heads. Wait for them to complete and save the results to asked.jsonl. Ensure no duplicates are charged if I run this again.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
npx -y @50heads/cli ask --csv asks.csv --json > asked.jsonlSDKs and examples — 50heads