← ChatBot + Zoho Inventory integrations

Create Sales Order with Zoho Inventory API on New Event from ChatBot API

Pipedream makes it easy to connect APIs for Zoho Inventory, ChatBot and 2,500+ other apps remarkably fast.

Trigger workflow on
New Event from the ChatBot API
Next, do this
Create Sales Order with the Zoho Inventory API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a ChatBot trigger and Zoho Inventory action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Event trigger
    1. Connect your ChatBot account
    2. Optional- Configure Webhook Name
  3. Configure the Create Sales Order action
    1. Connect your Zoho Inventory account
    2. Select a Organization
    3. Select a Customer
    4. Select one or more Item
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event for event received. *Need to be configured in the ChatBot UI flow to emit events*. [See docs here](https://www.chatbot.com/docs/webhooks/)
Version:0.0.1
Key:chatbot-new-event

ChatBot Overview

Leverage the ChatBot API on Pipedream to automate conversations, streamline customer service, and connect chat functionality with various apps for rich, responsive interaction. With this API, you can programmatically send messages, manage chat histories, and implement chatbots that react to user input in real-time. By integrating with Pipedream, these capabilities can be augmented with thousands of apps, enabling seamless data flow and complex automations.

Trigger Code

import chatbot from "../../chatbot.app.mjs";
import { v4 as uuid } from "uuid";

export default {
  key: "chatbot-new-event",
  name: "New Event",
  description: "Emit new event for event received. *Need to be configured in the ChatBot UI flow to emit events*. [See docs here](https://www.chatbot.com/docs/webhooks/)",
  version: "0.0.1",
  type: "source",
  props: {
    chatbot,
    db: "$.service.db",
    http: {
      type: "$.interface.http",
      customResponse: true,
    },
    name: {
      label: "Webhook Name",
      description: "The name of the webhook, this will be used to select in the ChatBot UI flow",
      type: "string",
      optional: true,
    },
  },
  methods: {
    async _respondWebHook(http, event) {
      http.respond({
        status: 200,
        body: event.query.challenge,
      });
    },
    _getWebhookId() {
      return this.db.get("webhookId");
    },
    _setWebhookId(webhookId) {
      this.db.set("webhookId", webhookId);
    },
  },
  hooks: {
    async activate() {
      const validationToken = uuid();

      const response = await this.chatbot.createWebhook({
        auth: {},
        headers: [],
        name: this.name ?? `Webhook ${validationToken}`,
        token: validationToken,
        url: this.http.endpoint,
      });

      this._setWebhookId(response.id);
    },
    async deactivate() {
      const webhookId = this._getWebhookId();
      await this.chatbot.deleteWebhook(webhookId);
    },
  },
  async run(event) {
    await this._respondWebHook(this.http, event);

    const {
      body,
      headers,
    } = event;

    this.$emit(body, {
      id: headers["x-request-id"],
      summary: `New event ${headers["x-request-id"]} received`,
      ts: new Date(),
    });
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
ChatBotchatbotappThis component uses the ChatBot app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Webhook Namenamestring

The name of the webhook, this will be used to select in the ChatBot UI flow

Trigger Authentication

ChatBot uses API keys for authentication. When you connect your ChatBot account, Pipedream securely stores the keys so you can easily authenticate to ChatBot APIs in both code and no-code steps.

To retrieve your API keys,

  • Navigate to your ChatBot account and sign in
  • Go to “Settings” > “Developers” > “API keys”

Note: The client access token should be used to invoke /query endpoint. For other API endpoints use the Developer access token

About ChatBot

ChatBot is an all-in-one platform to create, deploy, and track chatbots across channels.

Action

Description:Create a new sales order in Zoho Inventory. [See the docs here](https://www.zoho.com/inventory/api/v1/salesorders/#create-a-sales-order)
Version:0.0.2
Key:zoho_inventory-create-order

Zoho Inventory Overview

Zoho Inventory API on Pipedream opens the door to smart inventory management by allowing you to integrate with a plethora of apps, automate inventory tracking, and streamline order processing. You can sync your inventory levels across multiple sales channels, automatically update stock quantities, process sales orders, manage returns, and generate detailed reports, all in real-time. With Pipedream's serverless platform, crafting workflows becomes a breeze, letting you focus on scaling your business while reducing manual overhead.

Action Code

import zohoInventory from "../../zoho_inventory.app.mjs";

export default {
  key: "zoho_inventory-create-order",
  name: "Create Sales Order",
  description: "Create a new sales order in Zoho Inventory. [See the docs here](https://www.zoho.com/inventory/api/v1/salesorders/#create-a-sales-order)",
  version: "0.0.2",
  type: "action",
  props: {
    zohoInventory,
    organization: {
      propDefinition: [
        zohoInventory,
        "organization",
      ],
    },
    customer: {
      propDefinition: [
        zohoInventory,
        "customer",
      ],
    },
    items: {
      propDefinition: [
        zohoInventory,
        "items",
      ],
      withLabel: true,
      reloadProps: true,
    },
  },
  async additionalProps() {
    const props = {};
    for (const item of this.items) {
      props[item.label] = {
        type: "string",
        label: `Quantity of ${item.label}`,
        description: `Enter the line item quantity for item ${item.label}`,
      };
    }
    return props;
  },
  async run({ $ }) {
    const params = {
      organization_id: this.organization,
    };
    const data = {
      customer_id: this.customer,
      line_items: [],
    };
    for (const item of this.items) {
      data.line_items.push({
        item_id: item.value,
        quantity: this[item.label],
      });
    }
    const response = await this.zohoInventory.createSalesOrder({
      params,
      data,
      $,
    });
    $.export("$summary", "Successfully created sales order");
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Zoho InventoryzohoInventoryappThis component uses the Zoho Inventory app.
OrganizationorganizationstringSelect a value from the drop down menu.
CustomercustomerstringSelect a value from the drop down menu.
Itemitemsstring[]Select a value from the drop down menu.

Action Authentication

Zoho Inventory uses OAuth authentication. When you connect your Zoho Inventory account, Pipedream will open a popup window where you can sign into Zoho Inventory and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Inventory API.

Pipedream requests the following authorization scopes when you connect your account:

ZohoInventory.settings.READZohoinventory.FullAccess.all

About Zoho Inventory

Inventory Management | Online Inventory Software

More Ways to Connect Zoho Inventory + ChatBot

Create User with ChatBot API on New Contact from Zoho Inventory API
Zoho Inventory + ChatBot
 
Try it
Get Users with ChatBot API on New Contact from Zoho Inventory API
Zoho Inventory + ChatBot
 
Try it
Create User with ChatBot API on New Invoice from Zoho Inventory API
Zoho Inventory + ChatBot
 
Try it
Get Users with ChatBot API on New Invoice from Zoho Inventory API
Zoho Inventory + ChatBot
 
Try it
Create User with ChatBot API on New Item from Zoho Inventory API
Zoho Inventory + ChatBot
 
Try it
New Event from the ChatBot API

Emit new event for event received. Need to be configured in the ChatBot UI flow to emit events. See docs here

 
Try it
New Contact from the Zoho Inventory API

Emit new event each time a new contact is created in Zoho Inventory

 
Try it
New Invoice from the Zoho Inventory API

Emit new event each time a new invoice is created in Zoho Inventory

 
Try it
New Item from the Zoho Inventory API

Emit new event each time a new item is created in Zoho Inventory

 
Try it
New Sales Order from the Zoho Inventory API

Emit new event each time a new sales order is created in Zoho Inventory

 
Try it
Create User with the ChatBot API

Creates new user. See docs here

 
Try it
Get Users with the ChatBot API

Get a list of users. See docs here

 
Try it
Create Contact with the Zoho Inventory API

Create a new contact in Zoho Inventory. See the docs here

 
Try it
Create Sales Order with the Zoho Inventory API

Create a new sales order in Zoho Inventory. See the docs here

 
Try it

Explore Other Apps

1
-
0
of
2,500+
apps by most popular