JSON to TOON → OpenAI Enhancement → TOON to JSON
This scenario demonstrates token-optimized AI processing using the TOON (Token-Optimized Object Notation) format with CustomJS. What it does: - Receives product data via webhook - Converts JSON to TOON format (reduces tokens 40-60%) - Sends to OpenAI for content enhancement - Converts TOON back to production-ready JSON - Returns enhanced data Why use TOON? Sending raw JSON to LLMs is inefficient and error-prone. TOON strips redundant syntax (quotes, braces, commas) making it easier for AI to process while preserving data integrity. Setup Instructions: 1. Install this template 2. Connect CustomJS account (get API key at customjs.io) 3. Connect OpenAI account 4. Copy your webhook URL 5. Send POST requests with JSON product data Example Input: { "product_id": "SKU-45821", "name": "Wireless Headphones", "description": "Good headphones.", "price": 199.99 } Example Use Cases: - Bulk content enrichment for product catalogs - Data normalization and cleanup - Cost-effective AI processing at scale Benefits: - 40-60% reduction in token usage - Fewer JSON parsing errors from AI - Lower API costs - Faster processing Requirements: - CustomJS API key - OpenAI API key Learn more: https://customjs.io
This scenario demonstrates token-optimized AI processing using the TOON (Token-Optimized Object Notation) format with CustomJS.
What it does:
- Receives product data via webhook
- Converts JSON to TOON format (reduces tokens 40-60%)
- Sends to OpenAI for content enhancement
- Converts TOON back to production-ready JSON
- Returns enhanced data
Why use TOON? Sending raw JSON to LLMs is inefficient and error-prone. TOON strips redundant syntax (quotes, braces, commas) making it easier for AI to process while preserving data integrity.
Setup Instructions:
- Install this template
- Connect CustomJS account (get API key at customjs.io)
- Connect OpenAI account
- Copy your webhook URL
- Send POST requests with JSON product data
Example Input: { "product_id": "SKU-45821", "name": "Wireless Headphones", "description": "Good headphones.", "price": 199.99 }
Example Use Cases:
- Bulk content enrichment for product catalogs
- Data normalization and cleanup
- Cost-effective AI processing at scale
Benefits:
- 40-60% reduction in token usage
- Fewer JSON parsing errors from AI
- Lower API costs
- Faster processing
Requirements:
- CustomJS API key
- OpenAI API key
Learn more: https://customjs.io
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Support
How to import this workflow into Make
- 1Purchase or download the workflow to get the Make blueprint JSON file.
- 2In Make, create a new scenario, click the three-dots menu, and choose "Import Blueprint".
- 3Reconnect each module to your own app connections when prompted.
- 4Run the scenario once to verify it, then set your schedule and turn it on.
Related Dev Tools workflows
More from QualityWorkflows
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.