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.


Available blocks

FunctionWhat 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…UseWhy
Your agent to use the tools of a service that already exposes an MCP serverMCPsYou 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 APIYou 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…)WebhooksPlatica 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 jobsThe request runs on a schedule, independent of any conversation.

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.