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

    Nederlandse Hulpbronnen


      • Recent Topics

      • Expanding sales, marketing, and support capabilities in Zoho CRM Plus 3.0

        Hey everyone, It's been more than 10 years since we launched Zoho CRM Plus back in 2014. This is quite a milestone, and we've come a long way in empowering you with everything you need to offer an exceptional customer experience. On that note, we expanded
      • Erase function in Zoho PDF editor does not truly redact

        Using the "erase" function in the Zoho PDF editor online does not redact the text underneath when opening the file in Adobe. When I used the erase function to whiteout the areas I didn't want to be seen, I opened the supposed redacted files in Adobe.
      • [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
      • Error creating an XML file

        I am creating an xml as string in the function Employee.generatePartA_XML_String, and then I want to save it as a file to the field "Part_A_XML", but I get the response: {"code":3700,"message":"Unable to upload a file. Please check and try again."} How
      • Thunderbird cannot authenticate Zoho on android

        I keep getting a message from Thunderbird on Android that it could not authenticate for my account, dadashton@zoho.com., and to update my server settings. Now the settings are exactly the same for my other devices (1 Windows, 1 Mac and 2 Linux) Can anybody
      • Script to access a CBPX file from zoho crm

        Hello everyone, I'm planning to write a script in Python or Java in Zoho CRM functions, to access a CBPX file. Is it possible to write this script in the dev console of Zoho? What are the best practices to do this ? Would you have references in the Zoho
      • Mailchimp Integration

        Hello, I am needing some help. Does anybody have a recommended source for information on the Zoho-Mailchimp integration. We are working on a system to import large amounts of records into Zoho that will sync into Mailchimp for us to run a mail campaign out of. Let me explain what the process we are trying to implement - any information or advice is appreciated. Import record data base into Zoho Leads module --> use Lead source to ID records that are part of this mail campaign Zoho Leads (specific
      • [Free webinar] Zoho Creator meets AI with MCP | Creator Tech Connect (November 2026)

        Hello everyone, We are excited to invite you to another edition of the Creator Tech Connect webinar. About Creator Tech Connect The Creator Tech Connect series is a free monthly webinar consisting of purely technical sessions, where we dive deep into
      • Files in Teamspaces: keep your team's documents where the work happens

        Release Note: This feature is available for all accounts across all DCs Hello Everyone, A Teamspace is built around a specific team and a shared objective, and it holds the modules and projects that team works with every day. The document that team depends
      • Invalid Client - Client ID passed does not exist

        I tried connecting the Zoho campaign with the "Uncanny Automator". It shows an error " Invalid Client - Client ID passed does not exist". There is no option to add manual API. URL: https://accounts.zoho.eu/oauth/v2/auth?response_type=code&client_id=1000.MSFIUOA1G8YBK7IFRL9Z0NINM6DW9C&scope=ZohoCampaigns.contact.ALL&redirect_uri=https%3A%2F%2Fapi.automatorplugin.com%2Fv2%2Fzoho-campaigns&prompt=consent&access_type=offline
      • 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
      • Task status - completed - other options

        I have a dumb question I know i can make custom statuses for the tasks - but is there anyway to make additional "completed" statuses like for instance if i have a task "call back customer" and i leave a vm for them to call back marking it "completed -
      • #20 I've Sent It and It's Wrong

        Meera spots a mistake in an invoice just four minutes after sending it. She has billed a photoshoot at the half-day rate instead of the full-day rate. Her first thought is to delete the invoice and start again. But is deleting the right thing to do? It
      • Unable to integrate Whatsapp Messaging into Zoho CRM - Business Messaging

        Hello, I want to set up Business Messaging in our Zoho CRM and am struggling to set it up. I have logged into the account and our facebook business page, our business shows in the dropdown for WhatsApp Business Account but does not for WhatsApp Business
      • Zoho Forms API

        Is there any way to get all form entry list using API? Looking forward to hear from you
      • BNZ Bank Feeds No Longer Available

        The BNZ (New Zealand) bank feeds are still failing and it's been months since they last worked! Uploading bank statements (CSV's) mean waiting to the end of the month when they become available. It is unacceptable to keep my clients waiting for payment
      • MCP is now easier to access and configure in Bigin

        Greetings! We hope you're all doing well. We've previously introduced Zoho MCP for Bigin, which lets you connect Bigin with AI tools and interact with your Bigin data using natural language. Now we're making MCP easier to access and configure directly
      • Launch agents from more custom button locations and attach files in Ask Zia

        Hello all, Your agents now meet your team where the work happens. You can add agents to custom buttons in list views, create and edit pages, and related lists, so users launch them without leaving the page they’re on. What’s new Agents in more custom
      • Phone system to integrate with Zoho CRM

        I am looking for phone software that would allow my agency to do the following within Zoho CRM: Make calls from zoho Track calls and notes Leave pre-recorded messages after reaching voicemail of lead Only 2 members, so need company who will allow just
      • 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
      • Zoho Projects connector with Zoho CRM (Related List module) features

        Hi community, I use Zoho Projects connected to Zoho CRM, where we associate Projects with Deals, clients, etc.. I am looking to change/edit the fields that are available in the integration. Currently it shows Project Status, Project Completion, Milestones,
      • Feature Request: Render Markdown (.md) files in Zoho Cliq

        Hi, We regularly share Markdown (.md) files in Zoho Cliq. However, when we open these files in Cliq, the content does not render as Markdown—it displays as plain text. This forces us to copy/paste the content into an external Markdown viewer to read it
      • Free webinar: Zoho Sign for Microsoft apps

        Hello, Did you know Zoho Sign works right inside the Microsoft apps you already use? A signature request shouldn't mean leaving Teams for another tab, or downloading an Outlook attachment just to sign it. Zoho Sign integrates with Microsoft 365, Teams,
      • Users can now notify the contact while adding a 'Resolution' to the ticket.

        Hello, In the latest version of the Desk iOS mobile app (v2.6.4), users can now notify the contact while adding a 'Resolution' to the ticket. Also, the 'Resolution' UI has been tweaked to support edit and delete option.   Please update the app either
      • Better Time Tracking

        We need better time tracking customization for IT MSPs. We also need reporting that is built in, rather than having to try and fumble with creating custom reports. We also need to be able to mark whether a ticket has been billed or not, I don't think
      • Introducing Custom Fonts for Career Sites

        Your Careers page is often the first place candidates interact with your organization. From exploring job opportunities to submitting applications, a consistent visual experience helps candidates recognize and connect with your brand. To give you more
      • Need help with importing expenses

        I'm using the template downloaded from the application. When I try to import my expenses, I get the message: Duplicate entry in the Expense Date column. Ensure it contains unique values. None of the rows will import. There are duplicate dates, but they
      • time tracking on zoho crm cases

        Is there a time tracking feature in zoho crm cases? I need calculate time spent in calls, tasks and events Thanks in Advance  
      • Integrate with Power BI

        Hi, How to connect Zoho CRM dashboards & reports with POWER BI ?
      • Unbundle feature for composite items

        We receive composite items from our vendors and sell them either individually or create other composite items out of them. So, there is a lot of bundling and unbundling involved with our composite items. Previously, this feature was supported in form
      • Trident Missing

        No way you guys get so close to having trident complete for over a year then just kill it off. Wow just wow
      • Zoho Recruit: Time to Step Up Your AI Game!

        I've been using Zoho Recruit for many years and I love it. But let's be honest, it's starting to feel a bit like a relic from the pre-ai era. I recently tried out new systems that have ai resume screening and ai interviewing capabilities, these systems
      • Zoho mail app throwing network error

        Zoho mail app is throwing network error and I do not know how to fix the issue.
      • Cannot unblock account

        Hi, I have recently been travelling for work and now my mail account has been locked due to suspicious activity (I guess login attempts from different countries) however when I go into my admin panel it won’t let me unblock and asks me to contact support.
      • WorkDrive Desktop Sync Is Being Deprecated: Move to WorkDrive TrueSync for a Smarter Experience

        Hi everyone, We are excited to share a better, smarter way to access and manage your files directly from your computer! We’re transitioning from our legacy Desktop Sync app to WorkDrive TrueSync, designed to give you faster performance,greater flexibility,
      • Time logging issues

        I am losing times tracked on tasks. The problem is that it is not clear when the time is logged, when the timer is stopped or when the task is closed? I've done both and neither works. Whats more when the task is closed, the tracked time disapperas (i guess bc it shouldve been logged) but when it's not logged you've just lost your tracked time.  The bigger problem is the UN-NATURAL way this time logging is set up. On every other plat form that tracks time, it is made clear to save timer or log when
      • Start/Stop Timmer in Chrome Extension

        The chrome extension is great and allows you to do allot however one of the most common things employees working on projects need to do is track their time. Having an easy start/stop timer to track time would be great.
      • Employee Logged Hours Report

        Hi Team, We are looking at having all Employees logged hours report, but different staff uses diferent modules to log their time. Is there anywhere that we can get a report that captures every time entered through all Zoho modules? Thank you.
      • Time Log Report Across Zoho Apps?

        Currently there are at least 4 different apps in Zoho where users can book time. Projects Desk Books People In our case for instance, the same user may book time against both Projects and Desk Tickets. So we have no way to see a simple timesheet for a
      • Zoho Time tracking option with automated screen shots.

        Time tracking option with automated screen shots would be an exceptionally good feature, any plans to develop something like that? Please do the needful. Thank you, Raj Rajinc
      • Next Page