Skip to content
MonoChat UAE · For other countries monochat.ai

Custom functions

Your own business logic, running inside MonoChat

A custom function is JavaScript you write in MonoChat with the MonoChat SDK. The same function can be a step in a flow, a tool for your AI, an endpoint other systems call, a scheduled job or a screen for your team.

  • Custom flow nodes

    Turn a function into a flow node with its own settings form and outputs, so the people building flows fill in fields instead of editing code, and one function serves many nodes.

  • AI tools

    A function of type AI Tool is called by your AI node or AI agent when the conversation needs it, to look up or change data in your systems.

  • API endpoints and server methods

    Expose an endpoint your website, ERP or app calls, or a server-side method other functions use, with the business logic in one place.

  • Scheduled jobs

    Cron jobs run at the times you set to sync data, send a daily summary or clean up, without anyone pressing a button.

  • Custom views and collections

    Build screens inside MonoChat and keep your own data in custom collections, NoSQL-style stores the SDK reads and writes.

  • Organised and permissioned

    Keep functions in nested folders. Only users whose role has the function permissions can see or change them, and store apps keep their function IDs across updates.

In the UAE

Connect the systems your business already runs on

Your CRM may be Zoho, HubSpot or Odoo, your stock in an ERP and your deliveries with a local courier. Custom functions connect each of them to your conversations, and MonoChat or a partner can build them for you when you would rather not write the code.

Getting started

  1. Open Functions

    Go to Settings › Automation › Functions; you need a role with the function permissions.

  2. Create a function

    Name it, choose its type (flow node, AI tool, endpoint, method, cron job, view or app setup) and write the code.

  3. Use it

    Add it to a flow, give it to an AI node, call its endpoint or let its schedule run.

  4. Follow the runs

    Read the flow instance logs and AI Agent Runs to see what your functions did.

Read the guide in the help center

FAQ

Frequently asked questions

Short answers to the questions we hear most.

What language are custom functions written in?

JavaScript, with the MonoChat SDK for messages, customers, collections, other functions and methods.

Who can create functions?

Users whose role has the function permissions. Others cannot see or change them.

Can someone build them for me?

Yes. MonoChat’s team and MonoChat partners build custom integrations on functions and the API for customers who do not want to write code.

What happens when a function fails in a flow?

The flow continues on the node’s On Fail output, where you can notify your team or assign the conversation.

More of the product

First month of Growth on us

Bring every customer conversation into one place.

Connect your first channel in minutes. Basic is free for 1,000 outgoing messages a month.

One code per business • 30 days to redeem • No card needed

$150 credit, first month on us

Claim