JSON to TOON → OpenAI Enhancement → TOON to JSON
JSON to TOON → OpenAI Enhancement → TOON to JSON
Apps 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.
Generates a custom PDF file using your pre-defined CustomJS templates. All template variables are automatically converted into input fields for easy data mapping.
Creates and executes a batch of API calls.
Creates a new skill.
FAQ
Start by registering for Make. As a new Make user, you’ll automatically be assigned a free account. Once your account is set up, you can start creating your first scenarios. We recommend starting with our step-by-step video tutorial.
A scenario represents a workflow or a project of your own creation, and it is made up of a series of modules that automate apps and services. Creating a scenario allows you to transfer and transform data between apps and services via these modules to automate anything and improve the way you work.
Modules are the main building blocks of automation in Make. Modules represent actions that Make performs with an app, like creating, updating, or deleting data.
Mapping links the modules in your scenario. When you map an item, you connect the data retrieved by one module to another module to perform the desired action. For example, you can map email addresses and subject lines to create a spreadsheet using this data.
How it works
Traditional no-code iPaaS platforms are linear and non-intuitive. Make allows you to visually create, build, and automate without limits.










