This guide is intended for advanced Salesforce admins. For Salesforce education, contact Salesforce directly or use trailheads for specific knowledge.
Building the Salesforce Flow
Step One: Starting the Flow
Flow Type: Record-Triggered Flow
Object: Natterbox AI
Trigger the Flow When: A record is created of updated
Condition Requirements: All Conditions Are Met (AND)
Field: nbavs__PromptData__c
Operation: Equals
Value: True
ANDField: nbavs__CallerType__c
Operation: Equals
Value: Employee
When to Run the Flow for Updated Records: Only when a record is updated to meet the condition requirements
Optimize Flow: Actions and Related Records
Ensure the checkbox ‘Add Asynchronous Path’ is ticked, as we will be configuring this route only.
Step Two: Create a New Resource to look at Today’s Tasks Only
Click ‘New Resource’ on the Manager Panel
Resource Type: Formula
API Name: TodayDate
Data Type: Date
Formula: TODAY()
Check Syntax to confirm it is Valid
Click ‘Done’
Step Three: Obtaining the Task Record
Element: Get Records
Label: Get Task
Object: Task
Conditional Requirements: All Conditions Are Met (AND)
First Field:
Field: Call Reporting
Operator: Equals
Value: {!$Record.nbavs__CRO__r.Id} (if it comes up with no matches, click on the blank white space below the value box and it will automatically populate)
Second Field:
Field: Due Date Only
Operator: Equals
Value: TodayDate (resource we created in Step Two)
Now that we have the required information, we can now look at the type of data we would like to push to the Task:
If you would only like to push the AI Summary to the task, please review Section A: Call Summary on Task.
If you would only like to push the AI Wrap Up codes to the task, please review Section B: Auto Wrap Up on Task.
If you would like to push both the AI Summary AND Auto Wrapup to the task, please review Section C: Summary and Auto Wrap Up on Task.
Section A: Call Summary on Task
Step One (Free Text Prompt): Create a New Resource for the AI Summary
Resource Type: Formula
API Name: NotesandSummary
Data Type: Text
Formula: "User Notes: "& {!Get_Task.Description} & BR() & BR() & "Summary: "& AI Prompt API Name
For the ‘’. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Call Summary Prompt Name.
Click ‘Check Syntax’ to confirm this is correct.
Click ‘Done’
Step One (Rating Prompt): Create a New Resource for the AI Summary
Resource Type: Formula
API Name: NotesandSummary
Data Type: Text
Formula: "User Notes: "User Notes: "& {!Get_Task.Description} & BR() & BR() & "Summary: "& "AI Rating Prompt API Name - AI Reason Prompt API Name"
For the ‘’. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Call Summary Prompt Name.
Click ‘Check Syntax’ to confirm this is correct.
Click ‘Done’
Step Two: Updating the Task Record
Element: Update Records
Label: Update Task Summary
How to Find Records to Update and Set Their Values: ‘Specify conditions to identify records, and set fields individually’
Object: Task
Filter Task Records:
Field: Activity ID
Operator: Equals
Value: {!Get_Task.Id}
Set Field Values for the Task Records:
Field: Description
Value: NotesandSummary (resource from previous step)
Save the Flow and then Activate this. Once activated, perform a test call to ensure you do not experience any issues
Section B: Wrap Up on Task
Step One: Create a Decision to route calls based on 30 seconds talk time
Element: Decision
Label: Call Short
First Outcome
Label: Call Under 30 Seconds
Resource: {!$Record.nbavs__CRO__r.nbavs__From_Time_Talking__c}
Operator: Less Than or Equal
Value: 30
Default Outcome
Label: Call Over 30 Seconds
We will now be going through the Call Under 30 Seconds Route.
Step Two: Create a new Resource for the Short Call Task Subject
Resource Type: Text Template
API Name: ShortCallSubject
Body: Call {!$Record.nbavs__CRO__r.nbavs__From_Start_Time__c} - Transcription Too Short
Change View as Rich Text to View as Plain Text
Remove the <p> & </p>
Click Done
Step Three: Update >30 Task Records with Natterbox AI Wrap Up Prompt
Element: Update Records
Label: Update Task Under 30 Seconds
How to Find Records to Update and Set Their Values: Specify conditions to identify records, and set field individually
Object: Task
Filter Task Records:
Field: Id
Operator: Equals
Value: {!Get_Task.Id}
Set Field Values for the Task Records:
First Field: CallDisposition
First Value: Transcription Too Short
Second Field: Subject
Second Value: ShortCallSubject (Resource we created in Step Two)
Step Four: Update Call Reporting Record with Natterbox AI Wrap Up Prompt
Element: Update Records
Label: Update CR0 Under 30 Seconds
How to Find Records to Update and Set Their Values: Specify conditions to identify records, and set field individually
Object: Call Reporting
Filter Call Reporting Records:
Field: Id
Operator: Equals
Value: {!$Record.nbavs__CRO__r.Id}
Set Field Values for the Call Reporting Records:
First Field: nbavs__WrapupLabel_0__c
First Value: Transcription Too Short
Second Field: nbavs__WrapupString_0__c
Second Value: Transcription Too Short
We will now be going through the Call Over 30 Seconds Route.
Step Five: Create a new Resource for the New Call Task Subject
Resource Type: Text Template
API Name: NewSubject
Body: Call {!$Record.nbavs__CRO__r.nbavs__From_Start_Time__c} - AI Prompt API Name
For the AI Prompt API Name. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Wrap Up Prompt Name.Change View as Rich Text to View as Plain Text
Remove the <p> & </p>
Click Done
Step Six: Update 30> Task Records with Natterbox AI Wrap Up Prompt
Element: Update Records
Label: Update Task 30 Seconds
How to Find Records to Update and Set Their Values: Specify conditions to identify records, and set field individually
Object: Task
Filter Task Records:
Field: Id
Operator: Equals
Value: {!Get_Task.Id}
Set Field Values for the Task Records:
First Field: CallDisposition
First Value: NewSubject (Resource we created in Step Five)
Second Field: Subject
Second Value: NewSubject (Resource we created in Step Five)
Step Seven: Update 30> Call Reporting Record with Natterbox AI Wrap Up Prompt
Element: Update Records
Label: Update CR0 Over 30 Seconds
How to Find Records to Update and Set Their Values: Specify conditions to identify records, and set field individually
Object: Call Reporting
Filter Call Reporting Records:
Field: Id
Operator: Equals
Value: {!$Record.nbavs__CRO__r.Id}
Set Field Values for the Call Reporting Records:
First Field: nbavs__WrapupLabel_0__c
First Value: AI Prompt API Name
For the AI Prompt API Name. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Wrap Up Prompt Name.Second Field: nbavs__WrapupString_0__c
Second Value: AI Prompt API Name
For the AI Prompt API Name. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Wrap Up Prompt Name.
Save the Flow and then Activate this. Once activated, perform a test call to ensure you do not experience any issues.
Section C: Call Summary & Wrap Up on Task
For this section, you must complete Section B fully, and then add in these extra steps:
For a Free Text Prompt, please follow Step One A, for a Rating & Reasoning Prompt, please follow Step One B.
Step One A (Free Text Prompt): Create a New Resource for the AI Summary
Resource Type: Formula
API Name: NotesandSummary
Data Type: Text
Formula: "User Notes: "& {!Get_Task.Description} & BR() & BR() & "Summary: "& AI Prompt API Name
For the ‘’. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Call Summary Prompt Name.
Click ‘Check Syntax’ to confirm this is correct.
Click ‘Done’
Step One B (Rating Prompt): Create a New Resource for the AI Summary
Resource Type: Formula
API Name: NotesandSummary
Data Type: Text
Formula: "User Notes: "User Notes: "& {!Get_Task.Description} & BR() & BR() & "Summary: "& "AI Rating Prompt API Name - AI Reason Prompt API Name"
For the ‘’. Click on the ‘Insert a resource > Triggering nbavs__NatterboxAI__c > Click the name of your AI Call Summary Prompt Name.
Click ‘Check Syntax’ to confirm this is correct.
Click ‘Done’
Step Two: Amending the existing Update Task element
Once this resource has been completed, navigate to your existing Update Task component in the Over 30 Seconds Route and ensure the details are the following:
Element: Update Records
Label: Update Task 30 Seconds
How to Find Records to Update and Set Their Values: Specify conditions to identify records, and set field individually
Object: Task
Filter Task Records:
Field: Id
Operator: Equals
Value: {!Get_Task.Id}
Set Field Values for the Task Records:
First Field: CallDisposition
First Value: NewSubject (Resource we created previously)
Second Field: Subject
Second Value: NewSubject (Resource we created previously)
Third Field: Description
Third Value: NotesandSummary (Resource we created previously)
Save the Flow and then Activate this. Once activated, perform a test call to ensure you do not experience any issues.