2 Answers
- Newest
- Most votes
- Most comments
0
Hi When you call start_outbound_voice_contact, Are you passing your attributes to Attributes param?
Attributes={ 's3url': 'http://mybucket/mypath/filename.wav' },
Later in the contact flow you can reference this value using $.Attributes.s3url . No need to setContactAttribute inside the Contact Flow
The second part, I recommend to include the full path in the Attribute and then using Set Dynamically -> User Defined -> $.S3url (or $.Attributes.s3url) in GetCustomerInput block Example:
Notes:
- It has to be dynamically because with this connect will render de value of $.s3url
- also the way to access nested values is using "." (like $.Attributes.filename)
answered a year ago
0
Oh! Since the S3Path attribute is coming from the lambda function, I was using the Namespace as External. Based on Kike's response, it also worked when I used User Defined.
So now with the value as "S3Path" it finally worked.
Thank you so much for your help @Kike and @lukwarne!
answered a year ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 days ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago
Hi Kike,
Thanks for your response. I have provided the attributes in the Lambda Attributes={ 'S3Path': 'https://<bucket-name>.s3.amazonaws.com/prompts-audiofiles/Provide+options+if+no+agent+is+available.wav' }
I removed the Set Contact Attributes and added the below in Get Customer Input block:
Specify an audio file from an S3 bucket Set dynamically User defined : $.S3Path
But logs show the below: "Parameters": { "PromptLocation": ".", }
If I provide the value as $.Attributes.S3Path, then I get the below - URL with a dot . added at the beginning of the URL:
"Parameters": { "PromptLocation": ".https://<bucket name>.s3.amazonaws.com/prompts-audiofiles/Provide+options+if+no+agent+is+available.wav", }
Since your S3Path attribute is in the 'User defined' namespace ($.Attributes) you should be able to just reference it by the attribute name. Namespace = User defined Value = S3Path
https://docs.aws.amazon.com/connect/latest/adminguide/how-to-reference-attributes.html