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
-
Open Functions
Go to Settings › Automation › Functions; you need a role with the function permissions.
-
Create a function
Name it, choose its type (flow node, AI tool, endpoint, method, cron job, view or app setup) and write the code.
-
Use it
Add it to a flow, give it to an AI node, call its endpoint or let its schedule run.
-
Follow the runs
Read the flow instance logs and AI Agent Runs to see what your functions did.
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.
Related pages
More of the product
-
Team inbox
Every channel in one shared inbox, with assignment, roles and reports. -
Flows
Questions, bookings, reminders and payment links, automated without code. -
AI agents
AI that answers in Arabic and English from your own information, and hands over to your team. -
Contact centre
Workgroups, supervisors, routing and working hours for teams that answer together. -
Analytics and reports
Message, customer, template and agent reports, filtered to your workspace. -
Roles and permissions
Your own roles, down to whether an agent sees only their own conversations. -
Appointment booking
Bookings in the chat and WhatsApp reminders customers answer with one tap. -
Agent harness
Run agents on MonoChat, an agent SDK, a hosted service or your own endpoint. -
Custom LLMs
Your own OpenAI, Anthropic, Gemini, Azure or Ollama models, billed by your provider. -
AI function tools
Tools your AI calls to look up orders, check bookings and act on your systems. -
RAG orchestration
Retrieval from your own documents, wired into every AI node and agent. -
Vector databases
MonoChat’s vector database, or your own Chroma server for your embeddings. -
MCP
MCP tools for your AI agents, and the MonoChat MCP Server for Claude, ChatGPT and Cursor. -
Custom views
Your own screens, tables, forms and widgets inside MonoChat, next to the chat. -
Developers
API, webhooks, custom functions and the MonoChat MCP Server. -
Payment links
Send a payment link in the chat and carry on once the customer pays. -
AI knowledge base
Files, web pages and Q&A your AI answers from, organised in scopes. -
Broadcasts
Approved WhatsApp templates to the customers you choose, now or later. -
Mobile app
Your team inbox on iPhone and Android, free to download. -
Security
Roles, two-step verification, the UAE storage region and on-premises.
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