Prompt
Send a prompt and return the model's answer.
Command in the Generative AI toolkit · id ooa.genai/prompt · 26 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Prompt | String | Yes | Your request; ${...} interpolation allowed. | |
| System | String | No | You are a precise business assistant. | Instructions for the model's role and tone. |
| 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 answer length in tokens. |
| Hide personal data | Boolean | No | true | Replace emails, phone and card numbers, IBANs and similar before sending; restored in the answer. |
| 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. | |
| 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. | |
| Top k | Number | No | Only pick from this many most likely words (Anthropic models). | |
| 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). | |
| Seed | Number | No | Same seed and settings give the same answer where the provider supports it. | |
| Number of responses | Number | No | 1 | How many alternative answers to ask for, 1 to 10 (OpenAI-style providers). |
| Response format | String | No | text | json: ask for one JSON object and also return it parsed. |
| End user | String | No | An id for the person the answer is for, passed on for the provider's abuse monitoring (OpenAI-style providers). | |
| Timeout (seconds) | Number | No | 0 | Seconds to wait for the model; 180 when 0. |
| 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). | |
| 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}. | |
| 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 | Answer (the first one when several were asked for). |
| responses | List | Every answer, when number_of_responses is more than 1. |
| json | Any | The answer parsed as JSON, when response_format is json. |
| input_tokens | Number | Tokens in the request. |
| output_tokens | Number | Tokens in the answer. |