Chat
Send a message in a conversation that remembers earlier messages of the same chat session until End chat.
Command in the Generative AI toolkit · id ooa.genai/chat · 30 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Message | String | Yes | Your next message. | |
| Chat session | String | No | Default | Name of the conversation; use different names for separate chats in one agent. |
| System | String | No | Instructions for the model's role; set on the first message of a session (a new value replaces the old one). | |
| Provider | String | No | openai | Who runs the model: OpenAI, Azure OpenAI, Anthropic, OpenAI-compatible (LiteLLM, vLLM, Ollama), Hugging Face (its router or your own TGI server), AWS SageMaker (a model on an Amazon SageMaker endpoint), AWS Bedrock or Google Vertex AI (Gemini). |
| Connection | String | No | Name of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action. | |
| Model | String | No | Model name; the deployment name for Azure OpenAI; the endpoint name for AWS SageMaker; the model or inference profile id for AWS Bedrock. | |
| API key | Credential | No | API key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token. | |
| Endpoint address | String | No | Endpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1). | |
| Temperature | Number | No | 0 | 0 = consistent, higher = more creative. |
| Maximum tokens | Number | No | 1024 | Maximum reply length in tokens. |
| Hide personal data | Boolean | No | true | Replace emails, phone and card numbers, IBANs and similar before sending; restored in the answer. |
| History limit | Number | No | 40 | Most messages to keep in the session; the oldest are dropped first. |
| Top p | Number | No | Nucleus sampling: only the most likely words whose chances add up to this share are used (above 0 to 1); provider default when empty. | |
| Stop sequences | List | No | Up to 4 texts at which the model stops writing. | |
| Presence penalty | Number | No | From -2 to 2; higher values push the model toward new topics (OpenAI-style providers). | |
| Frequency penalty | Number | No | From -2 to 2; higher values make the model repeat itself less (OpenAI-style providers). | |
| Timeout (seconds) | Number | No | 0 | Seconds to wait for the model; 180 when 0. |
| AWS access key ID | Credential | No | AWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key). | |
| AWS region | String | No | AWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1. | |
| Images | List | No | Pictures: file paths (.png, .jpg, .gif, .webp) or web links starting with http:// or https://, which the provider fetches (not Amazon Bedrock). The model must accept pictures. | |
| Top k | Number | No | Only pick from this many most likely words (Anthropic models). | |
| Seed | Number | No | Same seed and settings give the same answer where the provider supports it. | |
| Response format | String | No | text | json: ask for one JSON object and also return it parsed. |
| AWS session token | Credential | No | AWS Bedrock and AWS SageMaker only: the session token from the vault, when the access key is a temporary one (for example from an assumed role). | |
| End user | String | No | An id for the person the answer is for, passed on for the provider's abuse monitoring (OpenAI-style providers). | |
| Logit bias | Dictionary | No | Make words more or less likely (OpenAI and Azure OpenAI): token id to a weight from -100 (never) to 100 (always), e.g. {"50256": -100}. | |
| Examples | Dictionary | No | Sample questions and the answers you want, question to answer; sent before the conversation as earlier turns so the model follows the pattern. | |
| Image detail | String | No | How closely the model looks at pictures (OpenAI and Azure OpenAI): low is quicker and cheaper, high reads fine print; auto lets the model decide. | |
| Provider options | Dictionary | No | Extra settings for this provider, added to the request as they are, e.g. {"reasoning_effort": "low"}; a dictionary is merged into the setting of the same name. | |
| API version | String | No | 2024-06-01 | Azure OpenAI only: the API version to call; change it when your resource needs a newer one. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | The model's reply. |
| json | Any | The reply parsed as JSON, when response_format is json. |
| turns | Number | Number of messages now held in the session (yours and the model's). |
| input_tokens | Number | Tokens in the request. |
| output_tokens | Number | Tokens in the reply. |