Custom functions
Your business logic, running inside MonoChat.
A custom function is JavaScript you write in MonoChat with the MonoChat SDK. One function can be a step in a flow, a tool your AI calls, an endpoint your other systems hit, a scheduled job or a screen for your team.
Hi, what’s the status of order 30517?
10:12
Hello Elif, your order is being packed at our warehouse and ships today.
10:12
Can I still change the delivery address?
10:14
Yes, as long as it hasn’t shipped. I’m connecting you to our customer service team now.
10:14
What a function can be
-
Custom flow nodes
Turn a function into a flow node with its own settings form and outputs. Whoever builds the flow fills in fields instead of editing code, and one function serves many nodes.
-
AI tools
Your AI node or AI agent calls a function of type AI Tool 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 your other functions share, so the business logic lives in one place.
-
Scheduled jobs
Cron jobs run at the times you set to sync data, send a daily summary or clean up, with nobody 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 see or change them, and store apps keep their function IDs across updates.
Bridge your group systems and your Turkish ones
Your CRM may be the one your group runs worldwide, while your Turkish entity keeps stock and accounts in a local ERP such as Logo, Mikro or Netsis. If a system can be called from outside, a function connects it to your WhatsApp and Instagram conversations. When you would rather not write the code, MonoChat’s team or a MonoChat partner in Türkiye builds it for you.
- An AI tool that reads order status from your ERP
- Custom nodes that flow builders configure from a form
- A nightly cron job that keeps your systems in sync
- If a function fails, the flow carries on from its On Fail output
How to set it up
-
Open Functions
Go to Settings › Automation › Functions; your role needs the function permissions.
-
Create a function
Name it, pick its type (custom flow node, AI tool, API endpoint, server-side method, cron job, custom view or custom app setup) and write the code.
-
Put it to work
Add it to a flow, give it to an AI node, call its endpoint or let its schedule run.
-
Follow the runs
See what your functions did in Flow Instances and AI Agent Runs.
FAQ
Frequently asked questions
Short answers. Message us on WhatsApp for anything else.
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. Nobody else can see or change them.
Can a function pull data from our ERP or CRM?
Yes. A function calls external services, and you use the result in a flow, hand it to your AI or show it in a custom view.
Can someone build this for us?
Yes. MonoChat’s team and MonoChat partners in Türkiye build custom integrations on functions and the API for companies that 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 alert your team or assign the conversation to an agent.
Keep exploring
-
Team inbox
Every channel in one shared inbox -
AI agents
Assistants that answer from your knowledge and hand over -
Flows
Automation for bookings, orders, payments and follow-ups -
Bulk messages and campaigns
Approved templates, to customers who agreed -
Payments in the chat
Payment links through iyzico, Paywall and virtual POS -
Mobile app
The inbox, notifications and replies on iOS and Android
First month of Growth on us
Every customer conversation in one place.
Connect your first channel in minutes. The Basic plan is free with 1,000 outgoing messages a month.
One code per business • 30 days to redeem • No card needed