Kaizen #262 - Using Zoho CRM Skill to build Queries

Kaizen #262 - Using Zoho CRM Skill to build Queries



Hello everyone!

Welcome back to another edition of the Kaizen series, where we uncover powerful ways to extend and customize Zoho CRM.

In the previous Kaizens, we explored how the zoho-crm skill can help developers work with Zoho CRM APIs, Client Scripts and COQL.

In this Kaizen, let's take this further and see how the skill can help us build Zoho CRM Queries using natural language.

Queries provide a flexible way to retrieve data from Zoho CRM and transform the response before using it in CRM features such as Canvas, Kiosk, and other custom UI components. A Query can use a CRM module, COQL, or other supported sources, and its response can also be modified using a serializer.

In this Kaizen, we will cover:

  1. About Zoho CRM Skill
  2. How the Skill Helps with Queries
  3. Business Scenario
  4. Requirement 1 - Retrieving CRM Data Using Queries
  5. Requirement 2 -Transforming Query Responses with Serializers
  6. Requirement 3 -Calculating Derived Values with Query Serializers
  7. Summary
  8. Related Links
1. About Zoho CRM Skill

The zoho-crm skill acts as an orchestration layer across different Zoho CRM developer capabilities, including REST APIs, Deluge Functions, Client Scripts, Widgets, COQL, Queries, and Connections.

The skill follows a five-step approach:
  1. Understand the requirement.
  2. Identify the appropriate CRM capability.
  3. Load the relevant references.
  4. Generate the solution.
For Queries, you can describe the data you need in natural language, and the skill can help determine the appropriate Query configuration, source, fields, criteria, sorting, and serializer logic.

For example, instead of manually determining how to configure a Query, you can provide a requirement such as:

"Fetch all upcoming events that are currently open for registration and sort them by event date."

The skill can then help build the corresponding Query.


2. How the Skill Helps with Queries

The zoho-crm skill simplifies Query development by helping you translate a natural-language requirement into the appropriate Query configuration. It can help with:
  1. Identifying the Query source - such as Module, COQL, or other supported data sources. 
  2. Building the Query - defining the fields, criteria, sorting, and other required configurations. 
  3. Configuring variables - identifying values that need to be passed dynamically to the Query. 
  4. Defining the schema - structuring the Query response based on the required output. 
  5. Creating serializers - transforming the Query response and performing calculations or deriving additional values. 
  6. Following Zoho CRM Query guidelines - using the relevant Query and CRM references while generating the solution. 
  7. Validating the implementation - helping identify missing fields, incorrect configurations, and potential edge cases. 
  8. Associating Queries - help you understand how a Query should be associated with the appropriate CRM component based on the requirement.
This allows developers to focus on describing what data they need and how it should be processed, while the skill helps determine how to implement the Query.
The user needs to:

Verify the CRM setup → Create/configure the Query → Associate it with the required component → Test and validate the result


3. Business Scenario
Quote
Zylker Events, an event management company that conducts workshops, conferences, and training programs, uses a custom module called Programs to manage its events.
The event management team wants to use Queries to display useful event information in CRM. Let's consider three requirements using the same Programs module, with each requirement introducing an additional level of Query configuration and complexity.

4. Retrieving CRM Data Using Queries

Let's start with a straightforward requirement.

Requirement 1
The event manager wants to see all upcoming events for which registration is currently open in a Kiosk.
The results should contain:
  1. Program Name
  2. Event Type
  3. Event Date
  4. Location
  5. Capacity
  6. Registration Count
The events should be displayed in ascending order of the Event Date.
InfoIdea
Prompt
/zoho-crm  

Create a Zoho CRM Query for the Programs custom module. Fetch events where Event Status is "Registration Opened".Return the following fields: Program Name, Event Type, Event Date, Location, Capacity, and Registration Count. Sort the results by Event Date in ascending order and associate with Kiosk.



Notes
The API names may differ, so we need to verify them against our API names as this is a custom module.
What did the skill do?
  1. Read the Query documentation: Reviewed Query sources, configuration, and Kiosk association guidance.
  2. Analyzed the requirement:
    1.  Fetch Programs with Event Status = Registration Open. 
    2.  Sort by Event Date ascending. 
    3.  Retrieve the required programme and event fields. 
    4.  Use the Query in a Kiosk. 
  3. Selected the Query source: Chose the Module source since the requirement involves retrieving and filtering records from a single CRM module. 
  4. Configured the Query: Mapped the requirement to the module, criteria, sort order, and required fields. 
  5. Considered Kiosk association: Identified that the Query should be associated with a Kiosk screen to display multiple Program records. 
  6. Verified assumptions: Noted that the API names should be verified against the actual CRM setup before implementation.   

5. Transforming Query Responses Using a Serializer

Now let's make the requirement slightly more useful.

Requirement 2

The event manager wants to know:
  1. How many seats are remaining?
  2. What percentage of the capacity has already been filled?
  3. Is the event nearly full?
Instead of storing these values as additional fields in CRM, we can calculate them when the Query executes.

Info

Prompt

/zoho-crm
For the custom module "Programs", using Queries, help me understand the current registration status of events that are open for registration.
For each event, I want to know:
How many seats are remaining?
What percentage of the event capacity has been filled?
Is the event Nearly Full, Filling Up, or Available?
Also show the Program Name, Event Type, Event Date, Location, Capacity, and Registration Count.
Show the earliest events first.


What Did the Skill Do?

  1. Selected COQL as the Query source based on the filtering, sorting, and field requirements.
  2. Created the COQL query to fetch registration-open programs sorted by Event Date.
  3. Mapped the required fields such as Program Name, Event Type, Event Date, Location, Capacity, and Registration Count.
  4. Designed the serializer to calculate Remaining Capacity, Registration Percentage, and Registration Status.
  5. Handled edge cases, including zero capacity and division-by-zero errors.
  6. Defined the response schema to include both CRM and calculated fields.
  7. Identified API-name dependencies that must be verified in the target CRM.
  8. Considered Query association with components such as Canvas, Kiosk, or Custom Related List.     
In short: The skill converted the requirement into a COQL Query → Serializer → Schema → Component association workflow.

6. Calculating Derived Values with Query Serializers

Let's take the same scenario one step further.
The event manager now wants to analyze events that have already been completed.

Requirement 3: Completed Event Analysis

For each completed event:

  1. Expected Revenue = Registration Count × Registration Fee 
  2. Attendance Rate = Actual Attendees / Registration Count × 100 
  3. Capacity Utilization = Actual Attendees / Capacity × 100 
  4. No-show Count = Registration Count − Actual Attendees 
  5. No-show Rate = No-show Count / Registration Count × 100 
  6. Attendance Classification: 
    1. Excellent: ≥ 90% 
    2. Good: 70–89% 
    3. Needs Attention: < 70%

Info
Prompt

/zoho-crm
For the custom module "Programs", using Queries, help me understand how completed
events performed.
For each completed event, I want to know:
How much revenue was expected from registrations?
What percentage of registered participants attended?
What percentage of the event capacity was utilized?
How many registered participants did not attend?
Was the attendance Excellent, Good, or in Need of Attention?
Also show the Program Name, Event Type, Capacity, Registration Count and Actual Attendees.

What did the skill do?  

The skill converted the requirement into a COQL-based Query with a Serializer and worked through the complete configuration.
  1. Loaded the relevant Query references for structure, sources, and serializers. 
  2. Selected the Module source with Event_Status = Completed. 
  3. Identified the required CRM fields such as Event Type, Event Date, Capacity, Registration Count, Registration Fee, and Actual Attendees. 
  4. Designed the serializer to calculate Expected Revenue, Attendance Rate, Capacity Utilization, No-show Count, No-show Rate, and Attendance Performance. 
  5. Added zero-value checks and error handling to prevent calculation errors. 
  6. Defined the schema to expose both CRM and calculated fields. 
  7. Prepared the implementation steps for Query creation, source, schema, serializer, and associating to Kiosk. 
  8. Noted that API names must be verified against the actual CRM setup. 

In short:Module Query → Filter → Retrieve data → Serializer calculates derived values → Schema exposes the results.


This is how it looks after implementing it through Kiosk:


7. Summary

In this Kaizen, we used a single Event Management scenario to explore three levels of Query development with the zoho-crm skill.

What the User Does
  1. Define the requirement: Specify the data, source/module, fields, filters, sorting, and target component.
  2. Provide the requirement to the AI coding agent: Give the requirement to an AI coding agent with the zoho-crm skill enabled. The skill analyzes it and suggests a Query implementation.
  3. Review the Query configuration: Verify the source, fields, criteria, sorting, variables, and other configuration.
  4. Review the serializer: If needed, provide the expected transformation logic and verify the serializer's filtering, formatting, renaming, or calculations.
  5. Verify CRM details: Confirm the actual module names, field API names, and field types in the target CRM organization.
  6. Configure the Query in Zoho CRM: Create and validate the Query using the reviewed source, schema, serializer, and other configuration.
  7. Associate the Query: Add the Query to the required component, such as a Kiosk, Canvas, or related list.
  8. Test and validate: Verify the data, filtering, sorting, serialized output, and displayed fields against the original requirement.

The zoho-crm skill simplifies this workflow by helping developers turn natural-language requirements into appropriate Query configurations and implementations.

Have an advanced scenario you’d like to see solved using the skill? Drop it in the comments or write to us at support@zohocrm.com.


Happy Querying!

Info
Related Links
Kaizen #258 – Getting Started with zoho-crm SKILL.md - Introduction to the zoho-crm skill and how it works across Zoho CRM developer capabilities.
Kaizen #259 – Working with Zoho CRM APIs using the zoho-crm skill - Using the skill to work with Zoho CRM APIs.
Kaizen #260 – Using Zoho CRM Skill to generate Client Script - Using the skill to generate Client Scripts.
Zoho CRM Queries – Developer Documentation - Learn more about Query sources, variables, serializers, and schema management.


    • Sticky Posts

    • Announcing the new SKILL.md for Zoho CRM and the updated OAS repository!

      We are introducing a new zoho-crm skill to make working with Zoho CRM Developer tools (like APIs, functions, widgets, client scripts, queries etc) easier and faster, with the help of AI in your preferred AI harness like Claude Code, Codex, Cursor, VSCode
    • Kaizen #261 : Using Zoho CRM Skill to generate complex COQL queries

      Hello everyone, In the previous Kaizen posts, we introduced the zoho-crm SKILL.md and discussed how it can help you when you are working with Zoho CRM APIs and Client Script. In this Kaizen, we will focus on using the Zoho CRM `SKILL.md` with GitHub Copilot
    • Kaizen #256 - Build an Arrival Readiness Web Tab in Zoho CRM

      Hi everyone! Welcome back to the Kaizen series! In the post, we discuss a use case in hospitality industry: how an Arrival Readiness web tab widget can be used to let reception staff identify and resolve issues before arrival of guests. Use case In the
    • Kaizen #198: Using Client Script for Custom Validation in Blueprint

      Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
    • Kaizen #226: Using ZRC in Client Script

      Hello everyone! Welcome to another week of Kaizen. In today's post, lets see what is ZRC (Zoho Request Client) and how we can use ZRC methods in Client Script to get inputs from a Salesperson and update the Lead status with a single button click. In this
    • Recent Topics

    • Europäische Zeichen: Komma "," anstatt Punkt "." möglich?

      In alle Betragsfelder müssen wir mit dem Punkt "." die Beträge erfassen wie 123.34 EUR. Das müssen wir nur in Zoho so machen, weil in anderen Applikationen wird in "Europa" mit dem Komma 123,34 EUR gearbeitet. Das Datumsformat kann kann in Books eingestellt
    • Introducing Seek Profile & Seek Ad Sync in Zoho Recruit

      Hiring on SEEK usually means working in two places. You check a candidate's SEEK Profile in one tab to confirm their work history and credentials, then switch back to Zoho Recruit to move them forward. When you post a new role, you rebuild the ad for
    • Zoho Bookings 1.0 is being retired – Switch to Bookings 2.0 by December 2, 2026

      Hello everyone! Zoho Bookings 2.0 was launched on April 17, 2025, introducing a simpler, workspace-based interface for managing appointments and scheduling activities. As part of the transition to the new version, Zoho Bookings 1.0 is being retired. If
    • [Webinar] AI-powered writing and automation in Zoho Writer

      Live webinar on November 12, 2026 | Time: 2 PM IST | 2 PM EST Hi, When organizations create documents, they often start from scratch. Then they need to proofread and translate them. Doing all of this manually takes time, and errors and hard-to-read writing
    • Feature Request - Ability to Customise Contact Info Card on Ticket Details View

      Hi Desk Team, I've added a "Contact Priority" and "Account Prioirty" field and it would be very useful to agents if they could see that information in the Contact Info card on the Ticket Details view. It would be great if we could choose some fields to
    • ChatGPT Plugin / MCP Server auth error

      Hi all I'm trying to connect the ChatGPT plugin for Zoho CRM but after username stage of the auth process, I get this error from the URL https://mcp.zoho.eu/mcp-client/ {"error_description":"Invalid request url, Request is not as per defined in oauth
    • Criteria-based follow-ups , and additional email response signals in Cadences

      Hello all, We've got a couple of updates for Cadences. Until now, the next follow-up in a Cadence was triggered based on the response to the previous follow-up. With this update, when the previous step is a call or a task, you can now also trigger the
    • Introducing Vibe in CRM: Turn Your Ideas to Live Experience

      Hello Partners! AI is changing the way we work and build things every day. Everyone is using AI to build widgets and front-end apps, turning their ideas and requirements into working experiences faster than ever. Imagine simply describing what you want
    • Can Zoho CRM Emails be used in Zoho Analytics in any capacity?

      We're wanting to display details about Lead Activity in regular reports through Zoho Analytics but we're having difficulty integrating Emails at all. We'd like to be able to note when an email is received and when it is sent somewhere other than just
    • Show discounted amount on sales order / invoice against MRP when using Price List

      Zoho has this great feature of having different Price Lists. The only thing missing perhaps is that MRP isn't shown when a price list is selected and discounted amount isn't shown on Sales Order / Invoice. This simple feature could be a great tool for
    • Title: How Are You Managing Sales Order Stock Allocation, Backorders, and Purchase Orders for Multiple Sales Orders in Zoho Inventory?

      Title: How Are You Managing Sales Order Stock Allocation, Backorders, and Purchase Orders for Multiple Sales Orders in Zoho Inventory? Hi Zoho Community, We are using Zoho Inventory under our Zoho One subscription, and we are facing challenges with managing
    • Zoho CRM mobile updates: Display field settings, query support for kiosks, quick navigation button, and more

      Hello everyone, We've made a few updates to the Zoho CRM mobile app to enhance your mobile CRM experience and efficiency. Here's a quick look at what's new: Display field customization (Android) Query support in Kiosk (Android) Quick navigation button
    • Zoho Inventory – Stock Allocation and Warehouse ManagementAs we implement Zoho One in our organization, we are currently facing a challenge with stock allocation and warehouse management. While the wa

      As we implement Zoho One in our organization, we are currently facing a challenge with stock allocation and warehouse management. While the warehouse management part can be handled in Zoho Inventory, our main requirement is the customer-wise stock allocation
    • Zoho Desk MCP doesn't expose all functions

      Hello, I'd like to be able to draft (rather than send) ticket replies using Claude Cowork. However, the Zoho Desk MCP doesn't currently offer that, despite it being available in the API (https://desk.zoho.com/DeskAPIDocument#Threads#Threads_DraftEmailReply).
    • Total Outstanding via Whatsapp?

      Is there a way to Send an automated WhatsApp message to all the customers (for whom outstanding is above 0) on daily basis from Zoho Books directly??
    • Important update regarding public wikis

      Hello everyone, We would like to share an important update regarding public access to wikis created under the Zoho Wiki Free plan. Public access was initially available as part of the Zoho Wiki Free plan. Over time, to improve and optimize our services,
    • 【開催報告】大阪 Zoho ユーザー交流会 2026 NEXUS|少人数でマーケティング・営業を回すZoho×AI活用

      Zoho ユーザーの皆さん、こんにちは。 ゾーホージャパンの中野です。 11月12日(木)、AP大阪にて「大阪 Zoho ユーザー交流会 2026 NEXUS」を開催しました。 今回は、ZohoとAIを活用して、少人数でもマーケティング・営業・顧客対応を回していくための実践例を中心にご紹介しました。 ご登壇いただいた小園さん、アダルシさん、そしてご参加いただいた皆さん、ありがとうございました! ユーザー活用事例 聞き直さない、追いかけない、思い出さない 〜ZohoとAIで一人営業を回す方法〜 登壇者:株式会社ジーニアスウェブ
    • Hiding old CRM Contacts in Desk

      I have an issue with contacts in Desk.   We sync contacts from CRM with DESK and we have old contacts, eg staff members that have left businesses.  The issue is when adding a ticket (most of our tickets are raised over the phone), staff sometimes pick
    • Action Request - Zia Agents - Get Agent API

      It would be great if there was a "Fetch Agent" action for Zia Agents. The main use case here is getting the latest version of the Agent to populate the "Trigger Agent Execution" action. That action requires one to specify which version of the Agent is
    • WhatsApp Business Calling API

      Dear Zoho SalesIQ Team, I would like to request a feature that allows users to call WhatsApp numbers directly via Zoho SalesIQ. This integration would enable sending and receiving calls to and from WhatsApp numbers over the internet, without the need
    • Calendar Reminders unavailable

      For some received meeting invitations, Zoho Calendar’s web interface provides no option to add or edit a reminder. However, I can add a reminder to the same event through the phone app. That reminder then appears in the browser, but still cannot be edited
    • Email-Data Synchronization with Zoho Analytics

      Hello, Enterprise Support Community! We're excited to announce the availability of Email Data Synchronization with Zoho Analytics! This highly requested enhancement allows you to sync email data from Zoho CRM into Zoho Analytics, making it easier to analyze
    • Keeping phone number text format exporting from Books to Sheet

      We have a custom function that copies data from our customers in Books to Sheets. In the process the customers' phone numbers (unless they contain a space) get treated as numeric values, so leading zeros get stripped off, and in some cases scientific
    • #22 I Sent It to the Wrong Person

      Meera was sending an invoice to a client when she mistyped the email address. She noticed the mistake a week later, when the payment had not come in. She corrected the email address on the customer record and waited for the payment to arrive. But nothing
    • New Search Function

      Hey Team, The search function updated in our CRM about a week ago, so I assume it was an automated update across Zoho. It no longer displays leads/deals etc in Chronological order so that the most recently created or updated is the first to display which
    • Build a historical inventory snapshot in Google BigQuery using Zoho DataPrep

      Businesses using Zoho Inventory may want to transfer their inventory data to Google BigQuery to maintain an up-to-date data warehouse. While scheduled pipelines help keep BigQuery updated with the latest inventory data, businesses that also need to track
    • Zoho writer tabs

      I'm trying to post a list of actions for my team to share online. For this I need to set tabs -- can't find a way of setting tabs anywhere. Would prefer not to go to the formality of a table. Can anyone tell me how to set tabs? greigg
    • Ability to Set Text Direction for Individual Cells in Zoho Sheet

      Dear Zoho Sheet Team, We hope you are doing well. We would like to request an enhancement in Zoho Sheet that allows users to set the text direction (right-to-left or left-to-right) for individual cells, similar to what is available in Google Sheets. Use
    • Keep Zoho Books data in sync with Google BigQuery

      Businesses using Zoho Books may need to transfer their financial data to a data warehouse like Google BigQuery for reporting and analysis. Zoho DataPrep helps automate this process by preparing Zoho Books data and syncing it with BigQuery at scheduled
    • What's New - October 2026 | Zoho Backstage

      Hello everyone, The last few months of the year are usually the busiest for events, with more people to reach and more details to manage. This month, we’ve made a few changes that should save you some time and back-and-forth along the way. Here’s what’s
    • Introducing user-based authentication across Zoho CRM

      We have introduced two enhancements to simplify authentication and enable user-specific access when working with Connections and executing CRM operations across different developer tools. 1. Enable user-based authentication for Connections Connections
    • Set connection link name from variable in invokeurl

      Hi, guys. How to set in parameter "connection" a variable, instead of a string. connectionLinkName = manager.get('connectionLinkName').toString(); response = invokeurl [ url :"https://www.googleapis.com/calendar/v3/freeBusy" type :POST parameters:requestParams.toString()
    • Allow Multiple usage units to items while adding them to sales/purchase transactions

      The usage unit of items added in zoho books are static right now and can not be changed. But certain items are received or sold in multiple usage units. One example is fabric. It can be bought in Meters, inches, kgs or other units. Another example would
    • How to restore deleted campaigns?

      I accidentally deleted my first campaign that went out today (08/21/18). How do I restore it?
    • Using IMAP configuration for shared email inboxes

      Our customer service team utilizes shared email boxes to allow multiple people to view and handle incoming customer requests. For example, the customer sends an email to info@xxxx.com and multiple people can view it and handle the request. How can I configure
    • New in Cadences: Option to Resume or Restart follow-ups when re-enrolling records into a Cadence, and specify custom un-enrollment criteria

      Managing follow-ups effectively involves understanding the appropriate timing for reaching out, as well as knowing when to take a break and resume later, or deciding if it's necessary to start the follow-up process anew. With two significant enhancements
    • Automatic Invoice Number generation for createRecord

      Hello, while testing some custom Buttons in my Zoho Books application, I noticed that I get an error that previously did not occur. After some further digging I found that the automatic transaction numbering of invoices no longer work in my organization.
    • Stop completed task lists from disappearing?

      Is there any way to stop projects from making tasks lists disappear when all the tasks in the list are completed? That's one of those little things where we're constantly fighting the product. For instance we have some projects which are ongoing - no start and end date. We use Kanban view to show the various task lists. We don't want the kanban list to disappear every time the items on it happen to be closed out. Thanks
    • Approval Processes, Now in Standard and Professional

      We encourage existing Approval Process users to switch to the new UI to access enhanced capabilities, including naming each rule and stage, setting stage-specific field updates and tasks, sending email notifications upon rejection, and tracking progress
    • Zoho Inventory - Backorder Report

      I am requesting a backorder report in Zoho Inventory to show all backorders by Sales Order and/or Customer, including the quantity of each line item ordered and quantity fulfilled. This is important for businesses who operate a lean business model and
    • Next Page