JSON to TOON → OpenAI Enhancement → TOON to JSON
JSON to TOON → OpenAI Enhancement → TOON to JSON
Get this templateApps used in template
About
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
Trusted by thousands of fast-scaling organizations around the globe
Similar templates for inspiration
Looking to get more out of your apps? With Make, you can visually integrate any app into any workflow to save time and resources - no coding required. Try any of these templates in just a few clicks.
Create your own workflow
Create custom workflows by choosing triggers, actions, and searches. A trigger is an event that launches the workflow, an action is the event.
Adds files to a specified vector store or, if not specified, creates a new vector store based on the configuration.
Selects, extracts, and flattens specific values from complex, nested JSON structures using JSON Path or simple selectors, making data usable for APIs.
Performs powerful Regex pattern extraction, search-and-replace, and validation on unstructured text data (e.g., emails, logs, web scraping output).
Analyzes images according to specified instructions.
Cancels an "in-progress" batch. The batch will be in status "cancelling" for up to 10 minutes, before changing to "cancelled", where it will have partial results (if any) available in the output file.
Reduce the file size of PDFs without losing quality. Perfect for optimized storage, sharing, and automation in Make.com.
Creates and executes a batch of API calls.
Triggers when mailhook receives data.
Triggers when webhook receives data.
FAQ
How it works
Traditional no-code iPaaS platforms are linear and non-intuitive. Make allows you to visually create, build, and automate without limits.









