The SEND_REQUEST action sends a prompt to an OpenAI or Azure OpenAI large language model (LLM) and returns the generated response. The action can be used for tasks such as content generation, summary, content enrichment, data transformation, and providing suggestions based on user input.
Use this action when a workflow needs to generate AI-assisted content or analyze existing information using a large language model.
During the operation, the connector authenticates with OpenAI or Azure OpenAI. The supplied prompt and optional instructions are submitted to the selected model. Then the model generates a response based on the provided parameters and the generated content is returned to the workflow.
The input parameters of the action are:
|
Parameter |
Type |
Required |
Description |
|---|---|---|---|
| model | String | Required | Name of the OpenAI model to use. The model must be compatible with the Chat Completions API. Refer to models compatible with the /v1/chat/completions API as defined in the Model endpoint compatibility of the OpenAI Platform documentation. For example: gpt-4o. |
| prompt | String | Required | Prompt sent to the AI model. Example:
Explain the concept of
gravity.
|
| systemInstructions | String | Optional | Additional instructions that influence how the AI generates the
response. Example: The
answer must be in HTML format.
|
| temperature | String | Optional | Controls response randomness. Values range from 0 to 2. Higher values produce more
varied responses; lower values produce more deterministic responses.
Default value: 0.7. Note: It is
recommended to use either temperature or
topP, but not both at the same
time.
|
| topP | String | Optional | Alternative sampling method that limits token selection to the most probable tokens.
Values range from 0 to 1. Default value: 1. Note: It is recommended to use either
temperature or
topP, but not both at the same
time.
|
| maxCompletionTokens | Integer | Optional | Maximum number of tokens generated in the response. Values range from 1 to 4096. For example: 100. |
The output parameters of the action are:
|
Parameter |
Type |
Required |
Description |
|---|---|---|---|
| response | String | Optional | Text generated by the OpenAI model. |