Guide
Artificial intelligence
Prompt, model, key and using the answer.
A simple AI flow¶
- Connect the Message event to Ask AI.
- Explain the task in the prompt and insert ${message.text}.
- Choose the provider, connected key and model.
- Connect Send message and insert the result chip into its text.
A model key and access to the flow generator are separate settings. Cost and limits depend on the selected provider. Keep unnecessary personal data out of prompts.
Prepare a template โ ยท Checks and security โ
Ask AI¶
Sends a prompt to an AI model and stores its answer for later steps. It does not send the user a message by itself.
- Connect a provider key, select a model and enter a prompt. Insert data from previous steps as chips.
- Name the result, for example llm_output. To reply to the user, connect Send message and insert ${llm_output}.
- For structured output, ask for JSON only and add Parse JSON. Check the result: models can make mistakes.