Contact block: Store customer input - Amazon Connect

Contact block: Store customer input


This block is similar to Get customer input, but this one stores the input as a contact attribute (in the Stored customer input system attribute) and allows you to encrypt it. This way, you can encrypt sensitive input such as credit card numbers. This block:

  • Plays an interruptible prompt to get a response from the customer. For example, "Please enter your credit card number" or "Please enter the phone number we should use to call you back."

  • Plays an interruptible audio prompt or play text-to-speech for a customer to respond to.

  • Stores numerical input as in the Stored customer input system attribute.

  • Allows you to specify a custom terminating keypress.

  • If during a call the customer doesn't enter any input, the contact is routed down the Success branch branch with a value of Timeout. Add a Check contact attributes block to check for timeouts.

Supported channels

The following table lists how this block routes a contact who is using the specified channel.

Channel Supported?




No - Error branch


No - Error branch

Contact flow types

You can use this block in the following contact flow types:

  • Inbound contact flow

  • Customer Queue flow

  • Transfer to Agent flow

  • Transfer to Queue flow


Note the following properties:

  • Maximum Digits: Define the maximum number of digits that a customer can enter.

  • Timeout before first entry: Specify how long to wait for a customer to start entering their reply by voice. For example, you might enter 20 seconds, to give the customer time to get their credit card.

    After the contact starts entering digits, Amazon Connect waits 5 seconds for each digit, by default. You cannot change this default setting.

  • Encrypt entry: Encrypt the customer's entry, such as their credit card information. For step-by-step instructions to get the keys that you use to input this information, see Creating a secure IVR solution with Amazon Connect.

  • Specify terminating keypress: Define a custom terminating keypress that is used when your contacts complete their DTMF inputs. The terminating keypress can be up to five digits long, with #, * and 0-9 characters, instead of just #.

  • Disable cancel key: By default, when a customer enters * as input, it deletes all of the DTMF input that came before it. However, if you choose Disable cancel key, Amazon Connect treats the * as any other key.

    If you send the DMTF input to an Invoke AWS Lambda function block, the Disable cancel key property affects the input, as follows:

    • When Disable cancel key is selected, all the characters entered—including any *—are sent to the Invoke Lambda function block.

    • When Disable cancel key is not selected, only the * is sent to the Invoke Lambda function block.

    For example, let's say you chose Disable cancel key, and a customer entered 1#2#3*4###, where ## is the terminating keypress. The Invoke Lambda function block then receives the entire 1#2#3*4# as input. You could program the Lambda function to ignore the character before the * character. So, the customer input would be interpreted as 1#2#4#.

  • Phone number: This option is useful for queued callback scenarios.

    • Local format: If all of your customers all calling from the same country that your instance is in, choose that country from the dropdown list. Amazon Connect then auto-populates the country code for customers so that they don't have to enter it.

    • International format: If you have customers calling from different countries, choose International format. Amazon Connect then requires customers to enter their country code.

Configuration tips

To use a star (*) as part of the terminating keypress, you must also choose Disable cancel key.

Configured block

When this block is configured, it looks similar to the following image:

Sample flows

See these sample flows for scenarios that use this block:


Creating a secure IVR solution with Amazon Connect