Use this guide to add voicemail functionality to an Amazon Connect flow.
These blocks in the flow should be added as the last two blocks JUST BEFORE the Disconnect block, as shown below in the pic, but RIGHT AFTER the prompt block you want to use for the voicemail greeting.
In the finished flow, the Set contact attributes block (showing No. of attributes: 4) is followed by an Invoke module block named Send to voicemail, which is followed by the Disconnect block (Termination event). Both the Success and Error outputs of the Set contact attributes block connect to the Invoke module block, and both the Success and Error outputs of the Invoke module block connect to the Disconnect block.
Add 'Set contact attributes' Block
- In the Block Library, go to Set > Set contact attributes.
- Drag this block toward the end of your flow.
- Add any incoming routes to the block that you will need to go to voicemail.
- Open the Config for the Set contact attributes block and enter the following settings in the pics below.
- These are the key values that you can copy/paste, as needed:
- vmx3_from
- vmx3_lang
- en-US
- vmx3_queue_arn
- vmx3_mode
- IMPORTANT: Use the values below to specify email or task for voicemail delivery.
- guided_task
- IMPORTANT: Use the values below to specify email or task for voicemail delivery.
- These are the key values that you can copy/paste, as needed:
- Click Save.
In the block's Config panel, set Set attributes on to Current contact.
Then add the following four attributes, each with Namespace set to User defined:
- Key vmx3_from: select Set dynamically, then set Namespace to System and Key to Customer address or number.
- Key vmx3_lang: select Set manually and enter the Value en-US.
- Key vmx3_queue_arn: select Set dynamically, then set Namespace to System and Key to Queue ARN.
- Key vmx3_mode: select Set manually and enter the Value email (or guided_task, per the note above).
Add 'Invoke module' Block
- In the Block Library go to Integrate > Invoke module.
- Drag this block toward the end of your flow.
- Add both Success and Error routes from the Set contact attributes block to the inputs on this block.
- Open the Config for the Invoke module block and enter the following settings in the pics below.
In the block's Config panel, enter Send to voicemail as the Block Name. Under Module name, select Set manually and choose VMX3_Main_VM_Module_a6prod1 from the Module name drop-down.
- Click Save.
- Add both Success and Error routes from this block to the input on the Disconnect/Terminate block.
- Save/Publish your flow.
Email Delivery for Voicemail
- Go to Queues and open the queue used in your flow.
- Under tags, enter the following:
- Key: vmx3_queue_email
- Value: Enter the email address of where to deliver the voicemail recordings.
- IMPORTANT: You can only use ayin.com email addresses to send voicemail recordings to.
- Click Add.
- Click Save.