Tools and Connections

Tools and Connections

AlertZia Agents is currently in Early Access and being rolled out in batches based on request. If you’d like to try it, you can submit a request below.
Info
This document focuses on the key components of Zia Agents, giving you idea on Tools, Tool Groups, and Connections.

Tools

In Zia Agents, tools are what enable your agent to do things actually. A Zia Agent can understand queries and decide what to do, but it can’t directly act on your business systems until it has tools.

Here’s the simplified flow:
User query > Agent reasoning > Decide to use a tool > Call the API via the tool > Use the API response to complete the task

Tools are the agent’s action layer — every time your agent fetches data, updates a record, or triggers an action, it does so by calling an API you’ve allowed it to use.


For instance, if you're building a Sales Assistant for Zoho CRM, the agent would need tools to get deal records, update deal stages, or fetch contact information. These tools are essentially API-based actions that allow your agent to interact with your services, whether it's CRM, Desk, Projects, or anything else.

Without tools, your agent would just be answering questions without the ability to take meaningful actions.

Tool Groups: Organizing the tools

A Tool Group is a collection of tools your agent can use to take action. You can add APIs from one or multiple Zoho services in the same group. This lets you design workflows that span across products — for example:

  • Read deal data from Zoho CRM 
  • Create tickets in Zoho Desk 

Organizing tools into groups keeps things manageable and ensures your agent uses the right APIs for the right purpose.


Ways to build a Tool Group:

You can build tool groups in two methods.

Method When to use

Notes

Predefined APIs

Quick setup using supported APIs from Zoho services

You can add APIs from multiple services in one group.

YAML (OpenAPI 3.0)

Custom endpoints or fine control

You can upload multiple YAMLs (one per service or mixed), then pick the operations you need.


Understanding API methods and endpoints


Every tool is based on an API, and each API has two important parts:

  • Method: The type of action the API performs. 
  • Endpoint: The location where the action happens.


Method Purpose

Example in CRM

GET

Fetch data

Get deal by ID

POST

Create something

Add a new contact

PUT

Update something

Change deal stage

DELETE

Remove something

Delete a ticket


Endpoint example:

  1. GET /crm/v8/Leads/{record_id}

This means the API will fetch the details of a specific lead, using its ID.


Best practices:

  • Group tools that belong to the same workflow (e.g., “Lead-to-Ticket Handoff”) instead of adding unrelated actions. 
  • Select only the scopes your tools need. 
  • Use descriptive tools and tool group names for easy identification. 
  • Test before publishing: Ensure each tool works with sample data. 
  • Re-test and adjust if a service updates its API.

YAML File

The YAML file is where you define the structure of the APIs your agent will use. It’s like giving your agent a blueprint of the actions it can perform.


For the agent to work, every action it performs—like getting a deal record, updating a contact, or creating a ticket—must be defined in this YAML. You can include multiple APIs in the same file, depending on what actions your agent needs to cover.


Let's say your agent needs to fetch a record from Zoho CRM. The YAML file defines:

  • API endpoints your agent can access. 
  • The parameters those endpoints need (like which module and which record to work with). 
  • The authentication required to call them (ensuring secure access). 
  • The responses the agent should expect when the call succeeds or fails so the agent knows how to handle the reply. 

All of this is written in OpenAPI 3.0 format.

Info
OpenAPI 3.0 is an open specification for defining and documenting REST APIs, enabling both humans and machines to understand and interact with them without needing to access source code, documentation, or network traffic inspection. It's a language-agnostic interface that uses a standard format, typically YAML or JSON, to describe API details like available endpoints, operations, parameters, and data models.
Let's consider the following YAML file to get a record from Zoho CRM
  1. openapi: 3.0.0 
  2. info: 
  3.  title: Zoho CRM API 
  4.  version: "1.0.0" 
  5.  description: Retrieve a single record from a specified module using Zoho CRM API v7. 

  6. servers: 
  7.  - url: https://www.zohoapis.com

  8. paths: 
  9.  '/crm/v7/{module_api_name}/{record_id}'
  10.    get
  11.      summary: Get a single record by ID 
  12.      description: > 
  13.        Retrieve a single record from the specified module using its record ID. 
  14.        You can also retrieve specific fields using the `fields` parameter. 
  15.      operationId: getRecordById 
  16.      parameters: 
  17.        - name: module_api_name 
  18.          in: path 
  19.          requiredtrue 
  20.          description: The API name of the module (e.g., Leads, Contacts, Deals). 
  21.          schema: 
  22.            typestring 
  23.          x-zia-agent-param-type: system 
  24.           
  25.        - name: record_id 
  26.          in: path 
  27.          requiredtrue 
  28.          description: The unique identifier of the record. 
  29.          schema: 
  30.            typestring 
  31.          x-zia-agent-param-type: system 

  32.      responses: 
  33.        '200'
  34.          description: Successful response with the record data
  35.          content: 
  36.            application/json: 
  37.              schema: 
  38.                typeobject 
  39.                properties: 
  40.                  data
  41.                    typearray 
  42.                    items: 
  43.                      typeobject 
  44.                      additionalProperties: true 
  45.                  info: 
  46.                    typeobject 
  47.                    additionalProperties: true 

  48.        '204'
  49.          description: No Content. No record found or not modified since the given timestamp. 

  50.        '400'
  51.          description: Bad Request — Invalid parameters. 

  52.        '401'
  53.          description: Unauthorized — Invalid or missing access token. 

  54.        '403'
  55.          description: Forbidden — The user does not have permission to access the record. 

  56.        '404'
  57.          description: Not Found — No record with the given ID exists. 

  58.        '429'
  59.          description: Too Many Requests — API rate limit exceeded. 

  60.        '500'
  61.          description: Internal Server Error. 

  62.      security: 
  63.        - OAuthToken: ["ZohoCRM.modules.ALL"

  64. components: 
  65.  securitySchemes: 
  66.    OAuthToken: 
  67.      type: oauth2 
  68.      flows: 
  69.        authorizationCode: 
  70.          authorizationUrl: https://accounts.zoho.com/oauth/v2/auth
  71.          tokenUrl: https://accounts.zoho.com/oauth/v2/token
  72.          scopes: 
  73.            ZohoCRM.modules.ALL: Read access for all module 

The system parameters you see in the YAML, like module_api_name and record_id, help the agent dynamically work with different modules and records. Without these, the agent wouldn’t know which record or which module to target.

Create a new tool group

To create a new tool group, follow the steps below.

  1. On your Zia Agents account, navigate to the Tools tab on the left. 
  2. Click New Tool Group
  3. Enter the tool group name 
  4. Choose the mode of creation: 
  1. Predefined: Choose a set of predefined APIs to make a tool group.  
  2. Create from scratch (Create with your own YAML file): Create a new API tool with your own YAML file

Predefined

Zia Agents Studio comes with pre-defined tools for different Zoho Services.

  1. Click on the service based on your requirement.
  2. You can see a list of the supported APIs for the service, along with the description of the API.
    You can also view the Method used in the API (GET/POST) and the Path for additional details. 
  3. Click Add for the required APIs.

Create From Scratch

To create a tools group from scratch, 

  1. Click the upload icon and upload your YAML file.  
  2. Under Schema, choose the service name, say, Zoho CRM. 
  3. Click Validate.
    The selected APIs from the YAML file will be listed. Once the validation is successful, click Next.
  1. Under Description, add a description about the Tools Group for reference.

Predefined APIs are marked as Ready, whereas APIs from uploaded YAML files added as Draft and require testing before being Ready.

  1. Select the APIs and click Test API.
  1. You can either associate with the existing connection or create a new connection and then associate it.
  2. Provide the parameter values from your service. 
    For example, for the selected getRecordById API in our example, set the module parameter's value as Leads, and provide the record ID for the test lead. 
  3. Click Test.
  1. Once the test is successful, the APIs will have Test Status as Success.



    You can select the tested APIs and click 
    Mark as Ready.
    This can now be associated with the agents.
  2. Click Save to save the tool group.

The tool group gets created. The same process can be repeated for creating multiple Tool groups.

Connections

A connection is used to authenticate and enable access to a specific service, such as CRM or Desk, when a tool is executed. For a connection to be valid, its associated service and OAuth scopes must align with the Tool Group’s service and the scopes required by the selected tools. Only when this alignment is ensured can the connection be associated with those tools. A tool can only be executed once it is properly linked to a valid connection.


Connections are listed under the Connections tab in the Settings page. You can see the connections created by you or the administrator of your organization under the My Connections tab. Services which are active will be marked with a green dot, while the inactive ones will be grayed.


Create a Connection,

  1. Navigate to SettingsConnections
  2. In the My Connection slide-out panel, click the Create Connection button and do the following: 
  1. Pick Your Service: You will find the default services and the custom services; choose the one, which you want to connect to the API, or create a new custom Service.
  2. Connection Details:  
  1. Connection name: Set a unique name for the connection. The connection link name will get automatically updated.
  2. Turn off the Yes toggle under Use Credentials of Login User if you want 
  3. Select the scopes as per your requirement.



Refer 
here to choose the right scopes for CRM.

  1. Click Create and Connect
    You can now connect with your credentials. In the next page, you can reuse an existing connection that has the selected service and scopes, or create a new one.
  2. For new connection, choose one of the organizations that you want and click Submit.
  3. Acknowledge Deluge's authorization prompt seeking consent to allow Deluge to perform CRUD operations by clicking Accept.


Once the authentication is done, the connection is created. 



The panel will now include sample codes in Deluge and Json to test how the agent uses the connection.


Alert
Next Read

See Also

Need Help? 
Mail us at support@ziaagents.com

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG

                                All-in-one knowledge management and training platform for your employees and customers.

                                            Create. Review. Publish.

                                            Write, edit, collaborate on, and publish documents to different content management platforms.

                                            Get Started Now




                                                              You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                  Manage your brands on social media


                                                                    • Desk Community Learning Series


                                                                    • Digest


                                                                    • Functions


                                                                    • Meetups


                                                                    • Kbase


                                                                    • Resources


                                                                    • Glossary


                                                                    • Desk Marketplace


                                                                    • MVP Corner


                                                                    • Word of the Day


                                                                    • Ask the Experts


                                                                      Zoho Sheet Resources

                                                                       

                                                                          Zoho Forms Resources


                                                                            Secure your business
                                                                            communication with Zoho Mail


                                                                            Mail on the move with
                                                                            Zoho Mail mobile application

                                                                              Stay on top of your schedule
                                                                              at all times


                                                                              Carry your calendar with you
                                                                              Anytime, anywhere




                                                                                    Zoho Sign Resources

                                                                                      Sign, Paperless!

                                                                                      Sign and send business documents on the go!

                                                                                      Get Started Now




                                                                                              Zoho TeamInbox Resources





                                                                                                        Zoho DataPrep Demo

                                                                                                        Get a personalized demo or POC

                                                                                                        REGISTER NOW


                                                                                                          Design. Discuss. Deliver.

                                                                                                          Create visually engaging stories with Zoho Show.

                                                                                                          Get Started Now








                                                                                                                              • Related Articles

                                                                                                                              • Deploying Agents

                                                                                                                                Zia Agents is currently in Early Access and being rolled out in batches based on request. If you’d like to try it, you can submit a request below. Request Early Access This document focuses on testing and deploying an agent. Before you can deploy an ...
                                                                                                                              • Creating Agents

                                                                                                                                Zia Agents is currently in Early Access and being rolled out in batches based on request. If you’d like to try it, you can submit a request below. Request Early Access This document focuses on creating an agent. A Zia Agent is an AI-powered smart ...
                                                                                                                              • Frequently Asked Questions

                                                                                                                                Zia Agents is currently in Early Access and being rolled out in batches based on request. If you’d like to try it, you can submit a request below. Request Early Access 1. What are the supported foundational models? Currently, Zia Agents support the ...
                                                                                                                              • Components of Zia Agents

                                                                                                                                Zia Agents is currently in Early Access and being rolled out in batches based on request. If you’d like to try it, you can submit a request below. Request Early Access This document focuses on the various components of Zia Agents, giving you an idea ...
                                                                                                                              • Settings

                                                                                                                                Zia Agents is currently in Early Access and being rolled out in batches based on request. If you’d like to try it, you can submit a request below. Request Early Access This document focuses the settings page and the options available within it. The ...
                                                                                                                                Wherever you are is as good as
                                                                                                                                your workplace

                                                                                                                                  Resources

                                                                                                                                  Videos

                                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                  eBooks

                                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                  Webinars

                                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                  CRM Tips

                                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                                    Zoho Show Resources