Agent Node
The Agent Node connector asks a large language model to do one step that needs judgment, such as classifying an email, summarizing a document or drafting a reply. Mention it as @agent_node. It can also return JSON in a shape the spec sets, so later steps get fields they can rely on. It uses your own account with an AI provider.
Connect
The credential holds your provider's API Key, and Unstract Flow sends each call to that provider. For a provider that needs more than a key, such as Amazon Bedrock or Azure OpenAI, fill in Provider Credentials (JSON) instead. Connectors, instances and credentials covers the rest of the setup.
| Setting | Default | What it does |
|---|---|---|
| Model | gpt-4o | The model to call, by its LiteLLM name. |
| API Base URL | Empty | For a self-hosted or proxied model. |
| Temperature | 0.7 | How varied the answers are. Tick Model default to send none and let the model use its own. |
| Max Tokens | Empty | The longest answer. |
| Timeout (seconds) | 120 | How long one call may take. |
| Retries on provider errors | 3 | How many more times a call is tried when the provider is busy or overloaded, the provider's call times out, or the connection drops. Other errors fail the step at once. A step that runs past 3 minutes also fails. 0 turns retries off. These retries happen inside the step's one attempt: after a timeout or a restart of the worker running it, an Agent Node step fails, and Flow never makes that call a second time. |
| Retry base delay (seconds), Retry maximum delay (seconds) | 2, 20 | The wait between attempts. |
| Retry budget (seconds) | 150 | The time a call may spend on retries, counted from the start of its first try. The budget never shortens the first try, which can use its full Timeout (seconds); a retry that would start with less than 30 seconds of the budget left is skipped, so at the defaults a call that times out isn't tried again. A step stops after 3 minutes whatever these settings say, so keep Timeout and Retry budget under 180 seconds, and under 90 seconds for a structured_output step: one that has to correct its answer makes a second call with its own budget. |
| Provider Parameters (JSON) | Empty | Extra parameters passed to the provider. |
Test Connection runs from the workflow's Tools tab, because it needs the Model. It reaches public addresses only, so it refuses an API Base URL, or an address in Provider Credentials (JSON), on a private network. A provider parameter can send the call, and the key with it, somewhere else, so the test checks each one before it runs:
- These go through unchecked:
temperature,top_p,top_k,max_tokens,max_completion_tokens,n,stop,seed,presence_penalty,frequency_penalty,logit_bias,logprobs,top_logprobs,response_format,reasoning_effort,thinking,user,api_version,timeout,num_retries,drop_params,safety_settings,tools,tool_choiceandparallel_tool_calls. - A parameter whose name says where, such as
api_base,aws_region_nameorvertex_location, is checked like a host. - Any other parameter, such as
custom_llm_provider, stops the test, and Flow names it. Remove it to test the connection. Runs still send it. extra_headersstops the test too: a header such asHostorAuthorizationcan send the call to another site at the provider's address, or sign it in with another key.
The Model picks the provider the test calls, so the test checks it too. A model with no provider in front, such as gpt-4o, must be an OpenAI model. Otherwise the provider before the first /, in lowercase as written here, must be openai, text-completion-openai, anthropic, azure, azure_ai, gemini, mistral, codestral, groq, cohere, cohere_chat, together_ai, openrouter, deepseek, fireworks_ai, perplexity, xai, deepinfra, cerebras, ai21, ai21_chat, nvidia_nim, sambanova, replicate or voyage. Without keys of its own, a model on Amazon Bedrock or SageMaker would sign in as Flow's own servers, so the test needs AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in Provider Credentials (JSON). A model on Vertex AI needs VERTEXAI_CREDENTIALS there for the same reason. Any other provider, such as ollama, stops the test, and so does a Bedrock model ARN whose region isn't one, such as us-east-1. Runs still call the model you set.
The connector sets every key in Provider Credentials (JSON) in its environment, so a test takes only the keys providers sign in with, each with a text value in quotes:
- Provider keys:
OPENAI_API_KEY,OPENAI_ORGANIZATION,OPENAI_PROJECT,ANTHROPIC_API_KEY,AZURE_API_KEY,AZURE_OPENAI_API_KEY,AZURE_API_VERSION,AZURE_AI_API_KEY,GEMINI_API_KEY,MISTRAL_API_KEY,CODESTRAL_API_KEY,GROQ_API_KEY,COHERE_API_KEY,CO_API_KEY,TOGETHERAI_API_KEY,TOGETHER_AI_API_KEY,TOGETHER_API_KEY,OPENROUTER_API_KEY,OR_API_KEY,DEEPSEEK_API_KEY,FIREWORKS_AI_API_KEY,FIREWORKS_API_KEY,FIREWORKSAI_API_KEY,PERPLEXITYAI_API_KEY,PERPLEXITY_API_KEY,XAI_API_KEY,DEEPINFRA_API_KEY,CEREBRAS_API_KEY,AI21_API_KEY,NVIDIA_NIM_API_KEY,REPLICATE_API_KEY,REPLICATE_API_TOKEN,SAMBANOVA_API_KEY,VOYAGE_API_KEYandVOYAGE_AI_API_KEY. - For Amazon Bedrock and SageMaker:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN,AWS_REGION_NAMEandAWS_REGION. - For Vertex AI:
VERTEXAI_CREDENTIALS,VERTEXAI_PROJECTandVERTEXAI_LOCATION.VERTEXAI_CREDENTIALSmust be the service account key itself, written out as JSON, not the path to a key file. - For Azure:
AZURE_API_BASEandAZURE_AI_API_BASE, which are checked like a host.
Any other key, such as AWS_PROFILE or OPENAI_API_BASE, stops the test, and Flow names it. A test also stops on vertex_credentials, aws_access_key_id, aws_secret_access_key or aws_session_token in Provider Parameters (JSON): put them in Provider Credentials (JSON) under the names above. Runs still use every key.
A test with an API Base URL or with any provider parameters says where to connect. On a credential someone else owns, it runs only for the people the credential is shared with, organization owners and admins, and people who can edit a workflow that has saved those values with the credential.
What a step can do
| Action | What it does |
|---|---|
completion | Sends a prompt and returns the model's answer as text. |
structured_output | Sends a prompt and returns a JSON object that matches a schema. |
Ask @agent_node to classify the email as
invoice,statement,disputeorother, and to return the category with a one-sentence reason.
The answer comes from the model at run time, so two runs on the same input can differ. Give the step a closed list of answers where you can, and follow it with a review step where a wrong answer costs money.
Claude 5 and GPT-5 models reject a Temperature of your choosing. For those, tick Model default under Temperature.