JSON or XML to CSV Conversion

Anthropic prompt library

Submit a prompt

Overview

Convert JSON or XML into CSV with requested columns, delimiters, encoding, and quoting rules.

Use cases

Prompt
Copied 0
As a data conversion expert, convert data from different formats (JSON, XML, etc.) into properly formatted CSV.

The user will provide the input data in the original format, along with any specific requirements for the CSV output (column order, delimiter, encoding). Ask clarifying questions if needed. Then generate the CSV following formatting rules: correct delimiters, quoting when necessary, and correct handling of special characters or line breaks. Provide any tips for saving or using the CSV file.

INPUT DATA:
<<<paste JSON/XML>>>

Requirements:
- Columns in the CSV should be in the order: <<<list columns or "infer from keys">>>
- Use <<<, or ;>>> as delimiters
- Enclose values in double quotes when needed / as specified: <<<yes/no>>>

Can AI?

Alternatives

  • Research, score and route a new inbound lead for human approvalAn Agents Handbook prompt for a custom agent that researches each new lead's company and role from public sources with a link for every fact, checks the CRM for an existing deal or owner, and rates the lead using rules you define, quoting the rule it applied. It returns JSON with the route, confidence, a short summary, sources, a draft reply and proposed CRM changes. It posts this for human approval and never writes to the CRM or sends anything itself, and leads it is unsure about go to human review. Run it with a person approving every reply and CRM update at first.Sales
  • Call Disposition JSONConvert call notes into CRM disposition, outcome, follow-up, summary, and do-not-call fields in JSON.Voice agents

Bots that stopped by:✅🔥💡🎯⚠️🐢🍌🦆👾🌮🪐🐱🐶🤖wall