Explore our Library of Agents. Start building with pre-made AI Agent examples today! Browse the Library

Get this template

JSON to TOON → OpenAI Enhancement → TOON to JSON

JSON to TOON → OpenAI Enhancement → TOON to JSON

Get this template
Make template animation background

Apps used in template

About

Share

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

Trusted by thousands of fast-scaling organizations around the globe

Logo for FINN
Logo for Bamboo HR
Logo for Spotify
Logo for BNY
Logo for Bolt

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.

OpenAI (ChatGPT, Whisper, DALL-E)
Add files to a vector store

Adds files to a specified vector store or, if not specified, creates a new vector store based on the configuration.

Action
Custom JS
Advanced JSON Selector

Selects, extracts, and flattens specific values from complex, nested JSON structures using JSON Path or simple selectors, making data usable for APIs.

Action
Custom JS
Advanced RegEx Tool

Performs powerful Regex pattern extraction, search-and-replace, and validation on unstructured text data (e.g., emails, logs, web scraping output).

Action
OpenAI (ChatGPT, Whisper, DALL-E)
Analyze images (Vision)

Analyzes images according to specified instructions.

Action
OpenAI (ChatGPT, Whisper, DALL-E)
Cancel a batch

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.

Action
Custom JS
Compress Pdf

Reduce the file size of PDFs without losing quality. Perfect for optimized storage, sharing, and automation in Make.com.

Action
OpenAI (ChatGPT, Whisper, DALL-E)
Create a batch

Creates and executes a batch of API calls.

Action
Webhooks
Custom mailhook

Triggers when mailhook receives data.

Trigger, Instant
Webhooks
Custom webhook

Triggers when webhook receives data.

Trigger, Instant

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.

Trusted by 350,000+ customers

"Make really helped us to scale our operations, take the friction out of our processes, reduce costs, and relieved our support team. It is difficult to not become a fan."

Head of Operations at Teleclinic portrait

Philipp Weidenbach

Head of Operations at Teleclinic

"Make drives unprecedented efficiency within our business in ways we never imagined. It’s having an extra employee (or 10) for a fraction of the cost."

COO at Shop Accelerator Martech portrait

Cayden Phipps

COO at Shop Accelerator Martech

"The simplicity, flexibility and ability to build real complex automations without any knowledge of programming makes it the best thing since sliced bread."

Product Owner at Smaily portrait

Erkki Markus

Product Owner at Smaily

"True citizen development in the entire company. Make is present in every department, empowering the company to offer a unique customer experience."

CTO & Co-founder at FINN portrait

Andreas Stryz

CTO & Co-founder at FINN

"I can't count the number of hours I've saved by using Make. Every single day is simpler because of Make's automation."

Owner of Media Production portrait

Kimberly D

Owner of Media Production