Functions
Functions are the technical building blocks you use to extend what your agent can do beyond the native Apps. While Apps are ready-to-use native integrations, Functions give you low-level control to connect any service that exposes an API or an MCP server, receive real-time events, and automate scheduled tasks.
If you just want to connect a popular tool (Shopify, Notion, HubSpot…), you don't need to configure anything by hand: the MCPs catalog includes presets that get almost everything ready for you.
Available blocks
| Function | What it does |
|---|---|
| MCPs | The control center for your MCP servers: connect the catalog apps (Shopify, Notion, GitHub…) or any other external server. |
| REST API | Turn any HTTP endpoint into a tool your agent can invoke during a conversation. |
| Webhooks | Receive real-time events through outbound webhooks. |
| Cron jobs | Run scheduled HTTP requests: refresh tokens, sync data, and more. |
Which one should I use?
A quick way to decide, based on what you need to accomplish:
| If you need… | Use | Why |
|---|---|---|
| Your agent to use the tools of a service that already exposes an MCP server | MCPs | You connect the server once and the agent gets all its tools ready to use. |
| Your agent to query or modify a specific endpoint in your system (an order, inventory…) | REST API | You define a single HTTP request and the AI invokes it with data from the conversation. |
| Your systems to find out when something happens in Platica (new message, customer created…) | Webhooks | Platica sends the event to your endpoint in real time; your agent isn't involved. |
| Something to run on its own, at regular intervals (refreshing a token, a health ping…) | Cron jobs | The request runs on a schedule, independent of any conversation. |
The direction of the flow is the key: your agent uses MCPs and REST API during a conversation (Platica → outward, on demand). Webhooks notify outward when something happens (Platica → outward, event-driven). Cron jobs run on a schedule, with no conversation involved.
Coming soon
These blocks will be added to Functions later:
- Custom Function — Write JavaScript code for custom logic.
- Database — Connect external SQL and NoSQL databases.
- Storage — Upload and manage files in the cloud.
- RPA — Connect external AI robots to automate browser tasks.