To pass Custom Fields values dynamically from Amazon Contact Center flow to Voice Call Object in Salesforce, Set contact attributes element can be used. Prefix sfdc-API Name of the field should be used the syntax.
Please check the following steps for reference:
1. Custom Field in Salesforce Voice Call object.
2. Use “Set contact attributes” to pass value to the Custom Field Salesforce from the Amazon Contact Center Flow.
a. When 1 is pressed, Text__c will be set as A.
b. When 2 is pressed, Text__c will be set as B.
c. When the customer didn’t press 1 or 2, Not Pressed will be set to Text__c field.
Get customer input configuration:
Set contact attributes configuration:
Output: