Draft a graph
- Open a workflow and choose the sparkle button in the top toolbar to open AI builder.
- Select a connected model.
- Describe the trigger, steps, data flow, and desired result. Include constraints such as “draft the email but do not send it.”
- Review the proposed node count, connections, validation issues, and summary.
- Choose Apply workflow only when the proposal matches your intent.
- Configure any deliberately blank credentials, paths, URLs, recipients, or selectors, then validate and run the workflow yourself.
Use AI during a run
Add an AI node when the next workflow step depends on a live answer. Select a connection, enter or map the instruction, optionally refine the system instruction, and choose the maximum output tokens, creativity, and timeout. The workflow waits until one of these events occurs:- The provider returns a response.
- The configured timeout is reached.
- The execution is cancelled.
- The provider rejects the request or the connection is unavailable.
response into a later text-compatible field. usage contains provider-reported token information when available, and model records the model ID used for the response. The default timeout is 90 seconds; the runtime accepts 1–300 seconds.
Write code with AI
Open a Code node, choose Edit code, then choose Code with AI. A coding chat opens to the right of the editor. Select a connection and describe the complete file or requested change. The current language and unsaved editor draft are included as context on every turn. Each completed response replaces only the unsaved draft and remains in the chat so you can refine it. The Problems panel immediately checks the returned source. Choose Save code or pressCtrl+S / Cmd+S to commit it to the node; cancel the dialog to keep the previously saved source.
AI-generated code is untrusted code. Inspect it before saving, and review command-execution permission before using Python or JavaScript in run mode. See Code and Web Builder for execution and localhost details.
Prompting tips
- Name the trigger and final outcome.
- State which external actions must remain drafts or disabled.
- Describe the expected shape of data between nodes.
- For code, request a complete file and state the language, inputs, output format, and error behavior.
- For a site, describe the HTML structure, interactions, styles, and the data each code block should contain.