This lesson will cover the following topics:

02 | Flow

01 Getting Started

This tutorial covers how to use Titan Files and Vision AI to scan images for text and place that text in a Salesforce field. For our example, we will detect a certain file name that is uploaded to the contact object, the file will be read for text and the text placed in the description field.

02 Flow

1. Navigate to Process Automation Flows in Salesforce and click New Flow.

create new flow

2. Select Record-Triggered Flow and click Create.

choose record-triggered flow

3. Configure the following:

  • Object - TFile
  • First condition - The Parent Object equals Contact (you can set this to any Object the file will be uploaded to.)
  • Second condition - The File Name to contain Contract.

configuring object for flow

4. Save and Label your Flow.

5. Click the + icon.

add node

6. Search for the File Action node and select it.

add file action node

7. Configure the following: 

  • Label - Vision AI OCR
  • Parent Object - Contact

8. Select the Settings icon in the Flow window.

configuring apex action

9. Click the Static tab under Variables, Add a Static Variable, and name it output_text. Click Apply.

creating new static variable

10. In the Titan Flow window, click the Any + icon and select Titan Vision AI as the node. Click Next.

add Titan Vision AI node  

11. Configure the following and click Next, add a tag, and Insert.
  • Engine - Version 1
  • ID - contentVersionId
  • Files - File
  • Store Plain Text to - GV/output-text

configure titan vision ai node

12. Select the Titan Vision AI + icon and choose Salesforce Action as the node. Click Next.

add salesforce action node

13. Click Salesforce Integration.

new salesforce integration

14. Select the Push tab and click Create New.

create new salesforce push

15. In the Object Settings tab configure; Contact as the Salesforce Object, Update as the Action, and add a description.

Object settings tab

16. In the Conditions tab configure that the Contact ID must equal the Parent Record ID.

conditions tab

17. In the Mapping tab configure, the contact description to the output_text variable. Click Apply and Close.

mapping tab

18. Use the dropdown to select the configured push and click Next.

choose created push

19. Add a tag and click Insert.

20. Save and Activate your flow. When a file contains the word Contract in its name. The file will be scanned for text and the scanned text added to the Salesforce object.

03 Got Feedback?