AI Generate Formulas

Use AI to write or repair dynamic expressions in supported fields and get help with JSON in Variable and AI steps.

A dynamic expression inserts data from the current context into text or calculates a field’s value. On this page, formula means dynamic expression. Here’s how to use AI to write or fix a formula without writing it by hand.

Open the expression editor

In an editable field that supports expressions, such as a supported Automation field, select the button for inserting or editing a dynamic value. You can also enter {{ in the field. Both open the same place to edit the expression and get AI help.

Write a formula with AI

  1. In the expression editor, select Write an expression with AI. The Describe what you need prompt opens.
  2. In Describe the value you need, enter a description of the value you want.

Accept the generated expression to add it to your draft. This doesn’t apply it to the field yet.

AI receives the values available in that field and the type of value the field expects. If AI can’t fulfill the request using those values, nothing is added to your draft.

Repair a broken formula

When the current expression is invalid, select Fix with AI under AI Help in the expression editor. This sends the current expression to AI for repair.

Apply the formula to the field

Ideanote checks an AI-generated expression the same way it checks one you enter yourself. Select Done when no errors are reported. The field now uses the expression.

Generate or repair JSON with AI

JSON assistance is separate from formula generation. Use it to draft or repair a JSON value in a Variable step or a JSON schema in an AI step.

Set a JSON value in a Variable step

When Value is set to JSON or JSON List, select the AI assistance button in Value. In Describe the JSON Structure You Want, describe one JSON object or an array of objects.

If the current Value is invalid, select Fix with AI. Fix JSON Structure opens and uses the current text to repair the value.

Review the preview, then select Insert to apply the result to Value.

Set a JSON schema in an AI step

  1. Under Output Type, select Structured JSON. JSON assistance is available in Schema.
  2. In Schema, select Generate JSON. The Describe format or changes prompt opens.
  3. In Describe format or changes, enter the format you want.

If the schema fails its syntax check, select Fix with AI in Schema. This asks AI to fix validation errors without making other changes. The repaired schema must pass validation.

Review the preview, then select Insert to apply the result to Schema.

Common questions

How can I test what my formula returns for a specific idea?

Trigger the Automation on a test idea, then check the result of the action that uses your formula. To trace what happened, select the run counter in the editor to open Runs; see Runs and Troubleshooting.

Why isn’t my idea’s custom field available to the formula?

Your formula can only use values available to the step where you’re writing it. Check the trigger and earlier steps to see whether they make the field available; see Context Variables.

Can I put a formula inside a longer notification message?

Yes, you can put a formula inside a longer automated email. In Send Email, insert the expression where you want the value to appear in the subject or message.

How do I use a value from structured JSON in a later step?

In a later Update Idea action, use an expression to map a named JSON property to a Form Field. Make sure the value matches the destination field’s type; see AI Steps.

Does the AI provider keep the data it receives when writing a formula?

Whether the AI provider retains formula data depends on the provider and setup. We configure zero data retention where supported; see How AI Handles Data.

Can AI build the whole automation instead of just writing a formula?

Yes, Build Automation can draft the trigger, steps, and formulas from your description. Review the draft before using it, since some steps may need manual setup; see AI Generate Automations.