Generate, Sign, and Automate Salesforce documents with real-time sync
Build portals, apps, and forms directly in Salesforce with Dynamic data flow and adaptability
How can we help you?
Use OpenAI actions in Titan Flow to generate text, analyze documents, and extract structured data for later steps in your flow. Connect your own OpenAI account through the Titan dashboard, then use the dedicated OpenAI node to send requests.
The node supports the classic and new Flow canvases.
Use OpenAI actions when you want to:
For example, your flow can upload a document, extract a summary and action items, use the extracted information, and delete the uploaded document.
The OpenAI node provides three actions:
| Action | What It Does | What It Returns |
|---|---|---|
| Upload File | Uploads a file created during the flow or received as a flow parameter to your connected OpenAI account. | An OpenAI file ID and file name. |
| Create Response | Sends a prompt to a selected OpenAI model. You can optionally include a file and a JSON schema to define the response structure. | Response text and a file ID, if returned. |
| Delete File | Removes a file from your connected OpenAI account using its file ID. | A deletion status indicating whether the action succeeded. |
The file ID returned by Upload File lets subsequent actions reference the same document. Use it in Create Response to process the document, and in Delete File to remove the uploaded file afterward.
A prompt tells OpenAI what you want it to do, such as summarize a document or extract specific information. You can use fixed instructions or a variable containing a prompt built during the flow.
An optional JSON schema defines how the response should be organized, including property names and data types. Use it when later steps need predictable fields that you can pass to a JSON parser or process in a loop.
For example, your prompt can request a document summary and action items, while your schema defines a text property for the summary and an array for the action items.
Make sure you have:
Note: The OpenAI node is available only when the feature is enabled for your account.
Connect your account so Titan can send requests to OpenAI using your API key.
Your flow uses this connection to upload and delete files, and to create responses in the connected OpenAI account.
Note: If you already have a securely saved API key, you can use it without creating another one.
In your Flow project, add an OpenAI action node and select the action you need.
| Action | When to Use It | Input | Output |
|---|---|---|---|
| Upload File | Make your flow file available to OpenAI. | A file variable. | File ID and file name. |
| Create Response | Generate a response from a prompt, optionally using a file and JSON schema. | Prompt, model, optional file, and optional JSON schema. | Response text and a file ID, if returned. |
| Delete File | Remove a file you no longer need in OpenAI. | File ID. | Deletion status. |
Use Create Response on its own for a text prompt. Add Upload File when the response needs a file from your flow, and Delete File when you want to remove that file afterward.
Use Upload File to send a file from your flow to OpenAI. The file can be created during the flow or received as a flow parameter.
For example, store the file ID in a variable named uploadedFileId. Use this variable in Create Response to reference the file and in Delete File to remove the same upload.
Note: The original file variable contains the file you are uploading. The returned file ID identifies that file in OpenAI after the upload.
Use Create Response to send instructions to OpenAI and return text that your flow can use.
Use static text when the instructions stay the same for every run. Use a variable when earlier steps build the prompt using information collected during the flow.
For example, to summarize a document, use:
Summarize the attached document in five bullet points. Include the main topic, key dates, and any actions the reader needs to take.
Select a model from the available list. Titan retrieves this list directly from OpenAI.
You must choose a listed model. You cannot enter a model name manually.
Add a file so OpenAI can use its contents when creating the response.
You can provide:
For a file uploaded earlier in the same flow, select the variable holding the returned file ID.
Leave the file input empty when your prompt does not need a file.
Use the optional JSON schema when later steps require a response with defined properties rather than free-form text. This helps you pass the response to a JSON parser and use individual values in subsequent actions.
Provide the schema as static content, or select a flow variable that contains it.
For example, the following schema defines a summary and a list of action items:
{
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"action_items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["summary", "action_items"],
"additionalProperties": false
}
Pair the schema with a prompt explaining what OpenAI should return:
Summarize the attached document and list the actions the reader needs to take. If there are no action items, return an empty action_items array.
Store the returned response text in a flow variable so later steps can use it.
If the action returns a file ID, store that output in a separate variable if you need it later.
When you request a structured response:
For example, use the parsed summary_response value in a later action and loop through action_items to process each action separately.
Use Delete File after the last step that needs an uploaded file. This removes the file from the connected OpenAI account.
To remove the original upload, use the file ID returned by the Upload File method. Keep this value separate from any file ID returned by Create Response.
Note: Creating a response does not delete the uploaded file. Add a deletion step so your flow removes it after use.
Use this sequence to generate a document summary and remove the uploaded file after processing.
| Step | Configuration | Purpose |
| 1. Upload File | Select the document’s file variable. Store the returned file ID in uploadedFileId. | Make the document available to OpenAI. |
| 2. Create Response | Enter a summary prompt, select a model, and use uploadedFileId as the file input. Store the response text. | Generate a summary using the uploaded document. |
| 3. Use the Response | Pass the response variable to the next step. If you requested JSON, parse the response first. | Use the generated information in your process. |
| 4. Delete File | Use uploadedFileId as the file ID and store the deletion status. | Remove the original upload from OpenAI. |
Test the flow with a sample document. Check that:
The OpenAI feature must be enabled for your Titan account before the node is available.
No. The dedicated OpenAI node uses the connection under Integrations > OpenAI on the Titan dashboard.
No. You can use Create Response with only a prompt and a selected model.
If the file is already uploaded to the connected OpenAI account, you can reference it using its file ID.
Yes. Store the prompt in a flow variable and select that variable in Create Response.
No. Select a model from the list retrieved from OpenAI.
Use a JSON schema when later steps need named properties or arrays that you can parse and process.
For example, request a summary and an array of action items, then use a JSON parser to access each value.
No. Add Delete File after the last step that needs the uploaded file.
Yes. The OpenAI node supports the classic and new Flow canvases.
On this page
The Only Forms Solution Built 100% in Salesforce.