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

    • Portal access is now available in the Zoho CRM mobile app

      Hello everyone, Zoho CRM Portals provide a secure space for sharing selected records with people outside your organization. These portal users can include customers, vendors, partners, or anyone who needs access to specific CRM data. Previously, portal
    • Field of Lookup - 5 Field Association Limit.

      This query relates to the post at: https://help.zoho.com/portal/en/community/topic/introducing-the-field-of-lookup-in-crm-public-early-access-2023 My simple (and common) scenario: I select an account / customer lookup and want their address pulled into
    • Zoho Forms API

      Is there any way to get all form entry list using API? Looking forward to hear from you
    • Multiple locations

      I have many customers (accounts) that have multiple locations, like bank branches. How can I manage them under one account?
    • Calendar won't load

      I run into this problem about once a week, where I try to open my Zoho calendar in a web browser, and it just gets stuck, waiting forever to load (see attached screenshot). I'm usually using Edge or Duck-Duck-Go browser. Sometimes it loads just fine,
    • Feature Request: Enhance Zoho Books Customer Approvals with WhatsApp, Multiple Approvers, Automated Reminders, and Workflow Automation

      Product: Zoho Books Module: Time Tracking → Customer Approvals Category: Feature Enhancement / Workflow Automation / Omnichannel Communication Description I would like to suggest several improvements to the Customer Approvals module in Zoho Books, particularly
    • Feature Request: Extend Zoho Books Customer Approvals API and MCP Support

      Product: Zoho Books Category: API Enhancement / OAuth Scopes / MCP Integration Feature: Customer Approvals (Timesheet Approvals) Description I would like to suggest an enhancement to the integration and automation capabilities of Zoho Books, specifically
    • Introducing PRM: Build, manage, and scale your partner ecosystem

      Growing a partner ecosystem is a good problem to have. What starts as a handful of partners can quickly turn into a maze of spreadsheets, emails, and disconnected processes. More partners mean more opportunities, greater reach, and new ways to grow
    • Tip: #14 Save words and phrases in Writer for faster writing!

      As you start working with more documents everyday, you'd find yourself using certain words and phrases across documents quite often. In this week's tip, let's discuss two easy ways to train Writer to remember your commonly used words—equipping you to
    • Introducing the Markdown editor in Zoho Learn

      Hello everyone, We're excited to announce the release of the Markdown editor in Zoho Learn. With Markdown editor, you can create and import articles as Markdown. You can write content using simple Markdown syntax and see how it looks with the built-in
    • Zoho ERP | Product updates | October 2026

      Hello users, A new month, a fresh set of updates in Zoho ERP. This month brings Netting, enhancements across our verticals, and more updates to help streamline your everyday work. Explore this month’s updates and see what’s new. Compliance with Revised
    • Zoho Forms - Feature Request - Embed iFrame or Dynaic URLs in Description fields

      Hi Zoho Forms team, I'm working with a client who uses Zoho Forms internally to collect information over the phone from potential work placement candidates. At the end of the form, the candidate needs to be booked in for an induction, which we've configured
    • BANK FEED - MAYBANK , provider from YODLEE IS NOT WORKING

      As per topic, the provider YODLEE is not working for the BANK FEED. It have been reported since 2023 Q3, and second report on 2023 Q4. now almost end of 2024 Q1, and coming to 2024 Q2. Malaysia Bank Maybank is NOT working. can anyone check on this issue?
    • Digest Octobre - Un résumé de ce qui s'est passé le mois dernier sur Community

      Bonjour chers utilisateurs, Bienvenue dans ce nouveau digest de la communauté Zoho France ! Vous y trouverez les discussions marquantes, les nouveautés produits, les conseils pratiques partagés et bien sûr les événements à venir. Le mois dernier, nous
    • Bank feeds - still a problem

      I'm really frustrated that the bank feeds only "sometimes" work.  I raised this problem once before and was advised that Zoho used Yodlee and feeds were only updated once a day.  That's fine but it only "sometimes" seems to work.  Eventually transactions appear but they sometimes seem to take days.  I know of other programs (Xero) that another business I am involved with uses Yodlee and they do not have this issue. My bank feeds are active,  I tried to manually refresh however Zoho tells me that
    • this is getting ridiculous

      My checking account bank feeds haven't worked since 6/4/21.  Multiple emails to Zoho since 6/10, and all they tell me is they have re-escalated my problem to their banking service provider team.  14 days and nothing is fixed. I'm just about ready to bail
    • No feedback from Zoho Books regarding Yodlee feeds for Investec

      I reported on 6 Feb 2025 that the Bank Feeds for Investec bank via Yodlee are not working. To date there has been no resolution. You are charging us for a suite of products where the functionality does not work. Please advise how you will refund me for
    • ongoing bank sync problems

      My bank feed broke May 14th 2021 Since then I just get an endless stream of we are working on it, "Kindly bear with us for sometime" from support Multiple times I have asked to speak to managers and half the time they don't call at all. If they do call
    • We must admit - Yodlee is an unreliable partner!

      Hello Zoho, Our Yes Bank account intergration is messed up since the beginning and the problem has not been addressed yet. With bad synchronization, poor categorization of transactions, duplicate/unknown copies of accounts, no support, geared at income/expenses,
    • Make your PDFs clearer with shapes

      Sometimes the best way to mark up a PDF is to point at it directly. Zoho PDF Editor includes shape tools that let you add circle, check and cross marks anywhere in your PDF, so you can flag content for review without extra comments. Here's what you can
    • Admin Logging in as another User

      How can a Super Admin login as another user. For example, I have a sales rep that is having issues with their Accounts and I want to view their Zoho Account with out having to do a GTM and sharing screens. Latest Update (27th April 2026): With the early
    • Project Migration

      We currently have two separate Zoho organizations: A Spark Robotic organization under Zoho CRM Plus A separate Contract Manufacturing organization under Zoho One We are working with Zoho Support to consolidate the CRM Plus organization into our existing
    • CNIL - Suivi de Pixel

      Bonjour à tous, À la suite de la nouvelle recommandation de la CNIL sur les pixels de suivi dans les e-mails, savez-vous si Zoho Campaigns permet : de conditionner le suivi des ouvertures au consentement de chaque contact ; de proposer un lien permettant
    • Live connection to DS files in Zoho Creator / ChatGPT

      As an idea, we are using ChatGPT to build with Zoho Creator (outside of Zia), which is works brilliantly to assist write deluge, provide test suggesitons etc. Currently we are uploading the DS files which are very point in time, it would be great to have
    • Improved Filtering and Tagging options for Notes

      We rely on the notes section across several modules and would love to have some more options in filtering, grouping, and tagging notes. We would like to be able to filter notes differently on a contact or deal and have that choice stay on that record
    • Action required: Update the Zoho Desk Client SDK URL in your extensions

      Hi Developers, To improve reliability and performance, the Zoho Desk Client SDK is now served from a new CDN domain. We request that you update your existing extensions with the new Client SDK URL given below. Note: Going forward, all newly created extensions
    • Decoupling Email Sending from Storage in CRM & Email Storage Add-on Purchases

      Hello everyone, We are excited to announce the rollout of the second phase of our email storage management, designed around a simple principle: your business communication should never be disrupted by storage limits. We've decoupled email sending from
    • Enhancement Request: Preserve Canceled Zoho Bookings Meetings in CRM

      I recently worked with Zoho Support on ticket 170383788 regarding what happens in Zoho CRM when an appointment is canceled in Zoho Bookings. Support confirmed that the current behavior is intentional: when a Bookings appointment is canceled, the corresponding
    • Edit PDFs using Zoho PDF Editor

      Hello users, In a previous article, we covered the organizing capabilities of Zoho PDF Editor. Here, we'll provide a quick recap of its editing features, including a few new additions. A few highlights of Zoho PDF Editor's editing capabilities: Add and
    • 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
    • What is a realistic turnaround time for account review for ZeptoMail?

      On signing up it said 2-3 business days. I am on business-day 6 and have had zero contact of any kind. No follow-up questions, no approval or decline. Attempts to "leave a message" or use the "Contact Us" form have just vanished without a trace. It still
    • Customer portal: recommended way to scope lookup fields to the logged-in client?

      Hi all, I'm building a customer portal on Creator for our clients (we're a esting lab, so each client has their own sites, contacts and jobs). Planning stage, so I'd rather get the approach right before I build it. The portal forms need several lookup
    • Zia for Mail: AI-powered assistance for Email, Calendar, and ToDo in Zoho Mail

      Zia for Mail brings AI assistance into Zoho Mail for everyday email, calendar, and task activities. Administrators can integrate third-party AI providers, such as ChatGPT or Gemini, and decide which features are available to users. What is Zia for Mail
    • "Else / If" Statement in Zoho CRM Inventory Template

      Hello, I would like to use the below "Else If" in my Inventory Templates, but it's not working correctly. Essentially, if the field "Quote Payment Terms" is filled in, display that. If "Quote Payment Terms" is blank, display "Account Payment Terms" instead.
    • Office Integrator

      Our users are complaining the slowness and speed when working in Zoho Office. Explicitly when working in a sheet. Here are observed issues *Copy and pasting values from one cell into another takes 10-20 seconds to show it has done it. *Modifying a value
    • [ZohoDesk] Improve Status View with a new editeble kanban view

      A kanban view with more information about the ticket and the contact who created the ticket would be valueble. I would like to edit the fields with the ones i like to see at one glance. Like in CRM where you can edit the canvas view, i would like to edit
    • Subform UI Unresponsive

      Has subform with a couple of hundreds of rows but suddenly the you can't add any row nor edit any fields. The subform has 10 columns Any thoughts on this Zoho team?
    • Kaizen #267: Four Developer Tools, One Prompt: Cracking Custom Cases with the Zoho CRM Skill

      Hello everyone! Welcome back to another Kaizen post. In this Kaizen, we’ll see how the Zoho CRM Skill solves a custom use case that requires multiple Zoho CRM developer tools. You describe the requirement in plain language, and the skill identifies the
    • 【開催報告】 福岡 ユーザー交流会 NEXUS 2026/10/30 | CRM×AIの実践事例とZia Agents活用を紹介

      Zoho ユーザーの皆さん、こんにちは。 コミュニティグループの中野です。 10月30日(金)、福岡にてZoho ユーザー交流会 NEXUSを開催しました。 今回は、Zoho CRM × AIをテーマに、ユーザーさんによる実践事例、 Zia Agentsのデモ、参加者同士のグループワークなどを実施しました。 ご参加いただいた皆さん、ありがとうございました! 本投稿では、当日の様子を一部ご紹介します。 ユーザー活用事例 :Zoho CRM × AIを、実際の営業業務でどう使う? 登壇者:株式会社etika
    • KB Articles from Zoho Learn - Import as .md

      I love the concept of being able to use articles from Zoho Learn as knowledge base articles for Zia Agents. This will absolutely help with proper documentation and organization of company processes and SOPs. This was a great concept. However, even when
    • Next Page