{{ transformations:AskAIAction.png}}
====== ASK AI ======
Category: Workflow / App/Cloud\\

\\ 
=====Description=====
The action allows free-form prompts to ChatGPT or other LLM services to be sent (as long as their API is ChatGPT-compatible).  The prompts can be parameterized using workflow parameters.


\\ 
=====Action settings=====
^ Setting  ^ Description  ^
|Connector<sup>*</sup>|Select the preconfigured OpenAI (ChatGPT or OpenAI Compatible) connector, or build one by selecting //Add connector//.|
|System|This value can be left at the default - "You are a helpful assistant" - for the time being. |
|User  |Enter a free-form text prompt for the AI service to process.  Click "Edit..." to open the Parameterized Text Editor to build prompts that include workflow parameters.|
|Maximum length  |Set the maximum length, in characters, of the response.|
|Add columns with usage information  |Check this to include columns listing the number of "Completion Tokens" and "Prompt Tokens" used by the prompt.|
|Attachments  |Browse to one or more image files to send along with the prompt.  Supported image formats are: .png, .jpg, .jpeg, .gif, .webp|

<sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\

\\
=====Community examples=====
[[https://community.easymorph.com/t/experimental-action-ask-chatgpt/4935|Experimental action: Ask ChatGPT]]


