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:
- Understand the requirement.
- Identify the appropriate CRM capability.
- Load the relevant references.
- 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:
- Identifying the Query source - such as Module, COQL, or other supported data sources.
- Building the Query - defining the fields, criteria, sorting, and other required configurations.
- Configuring variables - identifying values that need to be passed dynamically to the Query.
- Defining the schema - structuring the Query response based on the required output.
- Creating serializers - transforming the Query response and performing calculations or deriving additional values.
- Following Zoho CRM Query guidelines - using the relevant Query and CRM references while generating the solution.
- Validating the implementation - helping identify missing fields, incorrect configurations, and potential edge cases.
- 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
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:
- Program Name
- Event Type
- Event Date
- Location
- Capacity
- Registration Count
The events should be displayed in ascending order of the Event Date.
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.
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
- Define the requirement: Specify the data, source/module, fields, filters, sorting, and target component.
- 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.
- Review the Query configuration: Verify the source, fields, criteria, sorting, variables, and other configuration.
- Review the serializer: If needed, provide the expected transformation logic and verify the serializer's filtering, formatting, renaming, or calculations.
- Verify CRM details: Confirm the actual module names, field API names, and field types in the target CRM organization.
- Configure the Query in Zoho CRM: Create and validate the Query using the reviewed source, schema, serializer, and other configuration.
- Associate the Query: Add the Query to the required component, such as a Kiosk, Canvas, or related list.
- 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!