AI Generator
AI Generator
The AI Generator node uses an artificial intelligence model to generate text responses from a prompt you define. You can combine fixed instructions with dynamic variables from previous nodes, allowing the AI to produce personalized content for each flow execution.
The output of this node is always a text variable called response, which can be used in any subsequent node in the flow.
Adding the node to the flow
To use the AI Generator, open the node sidebar in Spaceflow and expand the A.I. section. Drag the AI Generator node onto the canvas and connect its input to the desired previous node.
1. Drag the AI Generate node onto your canvas

2. To use the AI-generated response throughout the flow, connect a subsequent node. In this example, we use a Task node

3. When you connect the node to a previous node, you gain access to that node's variables to use in the prompt.

Configuring the node
Double-click the node to open its settings. The fields are organized as follows:
Node Name
Node Name — the display name of this node in the flow. You can rename it for easier identification, especially in flows with multiple AI nodes.
Model settings
Model — the language model used to process this node. Click the field to expand the options and select the desired model.

Response creativity — controls the variation of generated responses. The value ranges from 0 to 2. Low values (such as 0.2) produce more predictable and consistent responses; high values (such as 1.5) produce more creative and varied responses. The default value is 0.7.

System instruction — defines the AI's general behavior, such as tone of voice, role to play, or format restrictions. This field is optional. If filled in, the AI will follow this instruction as the base context for all responses generated by this node.

Tip: the system instruction is useful when you need the AI to maintain consistent behavior — for example, "Always respond in formal English" or "You are a customer service assistant."
Prompt
Prompt — the main instruction the AI must follow to generate the content. This is the only required field in the node.

You can combine fixed text with dynamic variables from previous nodes. To insert a variable, open the Input sidebar (on the left side of the node) and drag the desired variable into the prompt field.
1. To insert a variable, simply drag and drop it into the text field

2. When the variable appears inside a labeled box, it means it has been correctly added

Example: if the previous node is a customer service form, you can write the prompt "Summarize the following ticket: " and drag the variable with the service item reference. The AI will receive the fixed text along with the actual data from that execution.
Node output
The AI Generator always produces a single output variable called response, containing the generated text. To verify the output structure, open the Output sidebar (on the right side of the node).

In any subsequent node in the flow, you can access this variable in the Input sidebar and use it wherever you need — for example, to fill in an email field, feed another AI node, or update a record in the workspace.
