from the team behind Truto
Connect ChowNow to ChatGPT: Discover Restaurants and Automate Orders
Uday Gajavalli
10 min read
The best way to connect ChowNow to ChatGPT is Elaichi: connect ChowNow to Elaichi once, then add Elaichi to ChatGPT as a connector. Two steps, about a minute, with a 14‑day free trial and no credit card required.
-
Start your free trial
14 days free, no credit card required.
-
Connect ChowNow
Once, in Elaichi. ChatGPT never gets more access than you have.
-
Add Elaichi to ChatGPT
In ChatGPT, open Plugins, press +, and paste the URL into Server URL. Sign in and approve.
https://api.elaichi.ai/mcp
Building ChowNow into your own product? The guide below is for you. Read the guide ↓ Start free on Truto →
The developer guide
Learn how to connect ChowNow to ChatGPT using an auto-generated MCP server. Discover restaurants, navigate quote-to-order APIs, and automate food delivery.
If you want to connect ChowNow to ChatGPT so your AI agents can discover local restaurants, check real-time menus, and place automated food orders, you need a Model Context Protocol (MCP) server. This server acts as the translation layer between ChatGPT's JSON-RPC tool calls and ChowNow's strict order-processing REST APIs.
If your team uses Claude, check out our guide on connecting ChowNow to Claude or explore our broader architectural overview on connecting ChowNow to AI Agents.
Giving a Large Language Model (LLM) read and write access to a live commerce platform like ChowNow is an engineering challenge. You must handle complex cart validations, strict idempotency requirements to prevent double-charging, and dynamic pre-checkout availability checks. You can spend weeks building, hosting, and maintaining this custom middleware, or you can use a managed infrastructure layer to dynamically generate an MCP server from the integration's schemas.
This guide breaks down exactly how to use Truto to generate a secure, authenticated MCP server for ChowNow, connect it natively to ChatGPT, and execute complex food ordering workflows using natural language.
The Engineering Reality of the ChowNow API
A custom MCP server is essentially a self-hosted integration layer. While the open MCP standard provides a predictable way for LLMs to discover tools, implementing it against ChowNow's specific commerce engine is highly nuanced.
If you decide to build a custom MCP server for ChowNow, you own the entire API lifecycle. Here are the specific integration challenges that break standard CRUD assumptions when working with ChowNow:
The Quote-to-Order Two-Step Mechanism
You cannot simply construct a JSON payload with a menu item and hit a POST /orders endpoint. ChowNow strictly enforces a two-step checkout flow to prevent price drift between the time a user views a menu and the time they pay.
First, you must send the cart items to the quotes endpoint. This returns a highly detailed breakdown of taxes, fulfillment fees, tips, and the grand total as a Money object in the restaurant's currency. When your AI agent is ready to place the actual order, it must pass the exact validated_total and menu_id received from the quote back into the order creation payload. If the totals do not match exactly, the ChowNow API rejects the order. Your MCP tools must be designed to force the LLM to pass this state sequentially.
Idempotency and Payment Safety
When dealing with autonomous AI agents executing financial transactions, timeout errors are a massive risk. If an LLM calls the order creation tool, but the network drops before the success response is received, the agent might retry the tool call - resulting in the customer being charged twice for the same meal.
ChowNow requires an Idempotency-Key header for order creation. A custom MCP server must ensure that the LLM provides a unique UUID for every distinct order intent, and persists that key during automatic or manual retries. Truto's auto-generated tools explicitly require this parameter in the JSON schema, instructing the LLM to generate and maintain it.
Real-Time Availability vs Static Menus
Fetching a restaurant's menu does not guarantee that the items can be ordered right now. Menus are static representations. To know if an order will actually succeed, you must check real-time availability.
ChowNow's availability endpoints return dynamic states: whether the restaurant is currently accepting orders, which specific fulfillment methods (pickup vs delivery) are active right now, upcoming temporary closures, and an array of IDs for items or modifiers that are currently 86'd (out of stock). If your agent tries to order an 86'd item, the API will throw an error. AI workflows must be designed to check availability prior to quoting.
Strict Rate Limit Transparency
When building high-volume AI agents, rate limiting is a critical concern. Truto does not retry, throttle, or apply backoff on rate limit errors. When the upstream ChowNow API returns an HTTP 429 Too Many Requests, Truto passes that error directly back to the caller.
What Truto does do is normalize the upstream rate limit information into standardized headers per the IETF spec:
ratelimit-limit: The maximum number of requests allowed in the current window.ratelimit-remaining: The number of requests remaining in the current window.ratelimit-reset: The time at which the rate limit window resets.
Your application logic or the LLM's system prompt must be designed to catch these 429s, read the ratelimit-reset header, and halt execution until the window clears. Do not rely on the integration middleware to absorb these errors.
Creating and Connecting the ChowNow MCP Server
Truto dynamically generates MCP tools based on the documentation and schema definitions attached to the ChowNow integration. You can provision this server via the Truto UI or programmatically via the API.
Step 1: Create the MCP Server
Option A: Via the Truto UI
- Log into your Truto dashboard and navigate to your connected ChowNow Integrated Account.
- Click the MCP Servers tab.
- Click Create MCP Server.
- Select your desired configuration (e.g., name, allowed methods like
readorwrite, and specific resource tags). - Click save and copy the generated MCP server URL (it will look like
https://api.truto.one/mcp/abc123xyz...).
Option B: Via the Truto API You can programmatically generate servers for your users on the fly. This is ideal for multi-tenant SaaS applications deploying agents.
curl -X POST https://api.truto.one/integrated-account/{integrated_account_id}/mcp \
-H "Authorization: Bearer $TRUTO_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "ChowNow Ordering Agent",
"config": {
"methods": ["read", "write"],
"tags": ["restaurants", "catalog", "orders"]
}
}'The API validates the configuration and returns a self-contained, authenticated URL. Treat this URL like a secret - it contains the cryptographic routing token required to access the underlying ChowNow account.
Step 2: Connect the Server to ChatGPT
Option A: Via the ChatGPT UI (For ChatGPT Plus/Pro/Enterprise)
- Open ChatGPT and navigate to Settings -> Connectors (or Apps -> Advanced settings depending on your tier).
- Ensure Developer mode is enabled.
- Click Add custom connector or Add MCP Server.
- Give it a name (e.g., "ChowNow via Truto").
- Paste the Truto MCP URL generated in Step 1.
- Click Add. ChatGPT will perform a handshake, discover the tools, and they are immediately ready for use in your chats.
Option B: Via Manual Config File (For Local Dev / Headless Agents) If you are using an OpenAI compatible framework locally, you can use the official MCP SSE transport. Create a JSON configuration file pointing to the Server-Sent Events proxy:
{
"mcpServers": {
"chownow-truto": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse",
"--url",
"https://api.truto.one/mcp/YOUR_TRUTO_TOKEN"
]
}
}
}High-Leverage Hero Tools for ChowNow
Truto automatically generates descriptive, snake_case tool names with fully typed JSON Schemas directly from the ChowNow API documentation. Here are the highest-leverage tools available for your ChatGPT agent.
1. list_all_chow_now_restaurants
Geo-discovers restaurants available for ordering near a specific latitude and longitude. The agent can narrow results by radius, cuisine, and open-now status.
"Find me all open pizza restaurants within a 5-mile radius of latitude 34.0522, longitude -118.2437. Use the
list_all_chow_now_restaurantstool."
2. get_single_chow_now_restaurant_availability_by_id
Fetches real-time, pre-checkout availability for a specific restaurant. This is critical before attempting to quote or order, as it dictates whether the kitchen is accepting orders, active fulfillment methods, and currently 86'd items.
"Before we look at the menu, use
get_single_chow_now_restaurant_availability_by_idfor restaurant ID '88392' to see if they are currently accepting delivery orders and if any items are out of stock."
3. get_single_chow_now_restaurant_menu_by_id
Retrieves a schedule-resolved menu with categories, items, sizes, and modifiers. Prices returned here already include partner commissions (if applicable), meaning the agent should not add custom markups.
"Pull the full menu for restaurant '88392' using
get_single_chow_now_restaurant_menu_by_id. List all the available modifiers for the 'Build Your Own Burger' item."
4. create_a_chow_now_quote
Prices a cart before ordering. The agent passes the restaurant_id, menu_id, fulfill_method, and the array of items. ChowNow returns the exact taxes, fees, and grand total required to place the order.
"I want to order two Pepperoni Pizzas for pickup. Use
create_a_chow_now_quoteto price the cart for restaurant '88392'. Note thevalidated_totalandmenu_idreturned in the response."
5. create_a_chow_now_order
Places the actual order against a prior quote. The agent must provide a generated idempotency_key, the validated_total from the quote, customer details, and a payment token.
"Generate a unique UUID for the
idempotency_key. Then, usecreate_a_chow_now_orderto place the pickup order. Pass the exactvalidated_totalwe just received from the quote."
6. get_single_chow_now_order_status_by_id
Provides a lightweight status poll. It returns the order's current status (e.g., received, preparing, ready) and when it last changed, without the heavy payload of the full order details.
"Check on the status of order ID 'ord_99482' using
get_single_chow_now_order_status_by_id. If it's not ready yet, let me know the last time the status changed."
For the complete inventory of available ChowNow tools, required parameters, and strict JSON schema definitions, view the ChowNow integration page.
Workflows in Action
When you combine these tools via ChatGPT, you unlock autonomous agents capable of navigating the complexities of modern food delivery logistics. Here are two concrete workflows.
Workflow 1: The "Find & Price" Concierge
In this scenario, an end-user wants to find nearby sushi and figure out exactly how much it will cost to get it delivered, including all taxes and fees, before committing to payment.
"Find open sushi restaurants near 40.7128, -74.0060. Pick the first one, check if they are accepting delivery right now, and if they are, pull their menu. Build a cart with one Spicy Tuna Roll and get a price quote for delivery."
Execution Steps:
list_all_chow_now_restaurants: ChatGPT queries the API using the provided lat/lon, filtered by the "sushi" cuisine, and selects the first returned restaurant ID (e.g.,rest_112).get_single_chow_now_restaurant_availability_by_id: The agent checksrest_112to confirm thedeliveryfulfillment method is active and the kitchen is open.get_single_chow_now_restaurant_menu_by_id: The agent retrieves the menu, locating the item ID for the "Spicy Tuna Roll" (e.g.,item_554).create_a_chow_now_quote: The agent constructs a cart payload withitem_554and calls the quote endpoint to get the finalvalidated_total.
ChatGPT then responds to the user: "I found 'Downtown Sushi'. They are open for delivery. One Spicy Tuna Roll will cost $14.50 total, including $2.50 in delivery fees and taxes. Would you like to proceed with the order?"
sequenceDiagram
participant User as User
participant ChatGPT as ChatGPT
participant MCP as Truto MCP Server
participant Upstream as ChowNow API
User->>ChatGPT: Find sushi near me & quote a Tuna Roll
ChatGPT->>MCP: Call list_all_chow_now_restaurants(lat, lon, cuisine)
MCP->>Upstream: GET /v1/restaurants/search
Upstream-->>MCP: Returns rest_112
MCP-->>ChatGPT: Returns rest_112
ChatGPT->>MCP: Call get_single_chow_now_restaurant_availability_by_id(rest_112)
MCP->>Upstream: GET /v1/restaurants/rest_112/availability
Upstream-->>MCP: Returns active fulfillment methods
MCP-->>ChatGPT: Confirms delivery is active
ChatGPT->>MCP: Call get_single_chow_now_restaurant_menu_by_id(rest_112)
MCP->>Upstream: GET /v1/restaurants/rest_112/menu
Upstream-->>MCP: Returns menu data
MCP-->>ChatGPT: Locates item_554
ChatGPT->>MCP: Call create_a_chow_now_quote(cart)
MCP->>Upstream: POST /v1/quotes
Upstream-->>MCP: Returns validated_total
MCP-->>ChatGPT: Returns $14.50
ChatGPT-->>User: Presents final price to userWorkflow 2: The "Order & Track" Automation
Once the user confirms the price from the previous workflow, the agent must safely execute the transaction and monitor its progress without duplicating orders on network hiccups.
"Go ahead and place the order for the Spicy Tuna Roll using the payment token 'tok_abc123'. Keep an eye on it and tell me when the status changes to 'preparing'."
Execution Steps:
- UUID Generation: ChatGPT generates a unique UUID (e.g.,
9b1deb4d-3b7d...) to use as theidempotency_key. create_a_chow_now_order: The agent sends the order payload, explicitly passing thevalidated_totalandmenu_idretained from the quote, along with the generatedidempotency_keyand payment token.- Order Confirmation: The API returns an order ID (e.g.,
ord_7733). get_single_chow_now_order_status_by_id: The agent periodically polls this endpoint, checking the status string until it transitions fromreceivedtopreparing.
ChatGPT reports back: "Your order has been placed successfully (Order #ord_7733). The kitchen just updated the status to 'preparing' - your sushi is on the way!"
Security and Access Control
Giving an LLM access to a live ordering system requires strict constraints. Truto provides four key configuration options when creating an MCP server to lock down agent capabilities:
- Method Filtering (
config.methods): You can restrict the agent to read-only operations. By settingmethods: ["read"], the agent can discover restaurants and read menus, but thecreate_a_chow_now_ordertool will not be generated or exposed to ChatGPT. - Tag Filtering (
config.tags): Scope the server to specific functional areas. For example, settingtags: ["catalog"]ensures the agent can only access menu and availability data, entirely walling off order history or customer profiles. - Extra Authentication (
require_api_token_auth): By default, possession of the MCP URL is enough to connect. Setting this flag totrueforces the client (e.g., your custom ChatGPT frontend) to pass a valid Truto APIBearertoken in theAuthorizationheader, adding a strict identity check. - Time-To-Live (
expires_at): For temporary agent sessions, you can set an ISO datetime. Once expired, Truto's edge infrastructure automatically drops the token and deletes the server configuration from the database, instantly revoking the LLM's access.
Wrap Up
Connecting ChatGPT to ChowNow requires more than just knowing the API endpoints. You have to handle strict quote-to-order lifecycles, enforce idempotency on financial transactions, and navigate real-time availability states.
By leveraging an auto-generated MCP server through Truto, you eliminate the need to write and maintain complex custom middleware. You get fully typed, documentation-driven tools that naturally guide the LLM through ChowNow's required logic, wrapped in a secure, configurable connection layer.
Stop wrangling JSON schemas and start building intelligent agents.
FAQ
- What is the easiest way to connect ChowNow to ChatGPT?
- The best way to connect ChowNow to ChatGPT is Elaichi: connect ChowNow to Elaichi once, then add Elaichi to ChatGPT as a connector. Two steps, about a minute, with a 14-day free trial and no credit card required.
- How does ChatGPT discover ChowNow API endpoints?
- ChatGPT discovers ChowNow endpoints via the Model Context Protocol (MCP). Truto dynamically generates JSON-RPC tool definitions from ChowNow's API schemas and exposes them through a single authenticated MCP server URL.
- Does Truto handle ChowNow API rate limits automatically?
- No. Truto normalizes upstream rate limit information into standardized IETF headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset) but passes HTTP 429 errors directly to the caller. Your AI agent or application logic is responsible for implementing retry and backoff strategies.
- Why do I need to create a quote before placing a ChowNow order?
- ChowNow requires a two-step ordering process to prevent price drift. You must first generate a quote to validate taxes, fees, and tips, then pass that exact validated_total to the order creation endpoint.