Skip to main content

AI in Automation: the AI builder, the AI step and what it costs

Build a flow by describing it to the AI builder, add an AI step that reads, writes and decides inside a flow, and follow the AI's work and cost on AI Usage, AI Runs and the Knowledge Base.

M
Monfri Team
Updated ·4 min read

AI helps in two places: it can build a flow from your description, and an AI step can do part of the work inside a flow — read a message, decide, write a reply.

Build a flow by describing it

Create with AI on Flows or on the Dashboard opens a new flow with the AI Flow Builder on the right; in any flow, AI builder in the top bar opens it. Clicking a step shows its settings in that place; AI builder brings the conversation back.

  1. Describe what should happen, in your words — When a deal is won in CRM, e-mail the customer a thank-you — or pick one of the suggestions.

  2. The builder adds and fills the steps on the canvas (Flow updated on canvas). When a step needs an app you have not connected, it shows a Connect card.

  3. Ask for changes the same way — wait a day before the e-mail. New conversation starts over.

    Before it starts, the builder saves your unsaved changes, so it works on the flow you see. If you change the flow while it is still working, the editor keeps your version and says so: Load the AI's version takes its change instead — saving yours replaces it.

  4. Check its work before you publish: open each step, test it, then Save and Publish: The flow editor.

The builder only uses the apps that can be connected here. The Knowledge Base teaches it other services' documentation — see below.

The AI step

AI Step (in the AI group) runs an AI model inside the flow, with Run AI Agent:

  • System Prompt — its instructions: who it is, what to do, what never to do.
  • User Message — what to work on this time, with values from earlier steps, such as {{trigger.body.message}}.
  • Model Spec — the model; leave the default, the one Monfri uses.
  • Tool Whitelist — the actions it may call, written as connector.action, for example crm.search-contacts or crm.create-note. Empty means it can only answer. It really does what the tools do — a write tool writes — so allow only what it needs.
  • Budget — maxRounds (8 by default) caps how many times it may think and call a tool.
  • Output Schema — optional, for an answer in a fixed shape.

The next steps get finalMessage (its answer), structuredOutput, toolCalls, status and rounds.

What you put in the prompts, and what its tools return, goes to the AI model of Monfri's provider; pass only what the step needs. The AI step's use counts in your plan as AI credits: Usage and limits.

OpenAI and Anthropic with your own key

The OpenAI and Anthropic Claude connectors call those providers with your own API key, saved in Connections: their use is billed to your account with them and does not count in your plan: Connectors.

AI Usage, AI Runs and the Knowledge Base

  • AI Usage — what the AI builder and the AI steps of this workspace used, for 24 h, 7 d or 30 d: Conversations, API calls, Tokens, Avg duration, Cost; By day (switch between Calls and Tokens), By model, and the Conversations — click one for its prompts and answers.
  • AI Runs — the requests Monfri's AI chat handled for the workspace, where your workspace has the chat, with their Status, Rounds and Cost. Click one for its page: the Request, the Plan, each step with its Input and Output, and the Final output.
  • Knowledge Base — documentation the AI builder may read. Add documentation → Documentation address (the start page) and Name → Add and crawl: it follows the links within that site, up to 200 pages. When it is done, Review pages lets you choose what to keep before it is indexed. In the ⋯ of a source, Re-crawl reads the site again and Delete removes it.

If something doesn't work

The AI step stops without an answer

It used its Budget — every round, without finishing. Make the instructions shorter and clearer, or raise maxRounds. The run's page shows each round and tool call: Runs.

AI step lists tools that do not exist in the connector registry: …

A name in Tool Whitelist is not a real connector.action. The first part is the app — crm, cdp, push-platform, docs — and the second the action, in small letters with hyphens: Create Note is crm.create-note, Search Contacts is crm.search-contacts. A few differ from their label — Qualify Lead is crm.convert-lead, Enroll Contact in Sequence is crm.enroll-in-sequence. Ask the AI builder when unsure.

The AI builder made a step I did not ask for

Tell it so, or delete the step yourself. Nothing it builds runs before you publish.

More in Flows

Help

Automation: the dashboard, the flow list and what each menu item is for

What Automation does, how flows and recipes relate, the dashboard, the menu, and the flow list — folders, on and off, running, duplicating, exporting, importing and deleting a flow.

Read →
Help

The flow editor: steps, saving, publishing and testing

The flow editor step by step — the canvas, adding and connecting steps, a step's Settings, I/O and Test tabs, using data from earlier steps, saving, publishing, running and the shortcuts.

Read →
Help

Triggers: what starts a flow

The five ways a flow starts — by hand, on an event in a Monfri service or another app, on a webhook, on a schedule, or by checking an app for new records — with how to set each one up and the data it hands to the steps.

Read →
Help

Conditions, loops and waits in a flow

Branch a flow on a condition, repeat steps for every item in a list, and wait — for a few minutes, days, or until a date — with the twelve condition operators and what happens to a run while it waits.

Read →
Help

Steps in Monfri: e-mail and push, CRM, CDP, Pages, agents and approvals

What a flow can do in the other Monfri services — send an e-mail or a web push through Push, create and update contacts, leads, deals, activities and invoices in CRM, track and read profiles in CDP, write Pages, start an agent and ask a person to approve — and the rules each one follows.

Read →
Help

Runs: what a flow did, why it failed, approvals and analytics

Every time a flow runs — its status, what each step received and returned, why a step failed, the flow's versions, running it again from the step that failed, the e-mail about a failed flow, the runs waiting for your decision, and Analytics.

Read →

Didn't find your answer?

Write to us and tell us what you were trying to do.