*** id: 6b7c11a6-bf0e-49c0-b52a-3b7f97382eac title: Prompt sidebar-title: Prompt position: 1 slug: /cxml/reference/voice/pay/prompt max-toc-depth: 3 ---------------- The `` noun allows you to customize the default prompts used by ``. When SignalWire executes `` CXML instructions without ``, the caller will hear default prompts for each step of the payment process. You can modify what the caller hears for a given payment step by nesting `` within ``'s opening and closing tags. You can customize prompts using either: * Text-to-speech by nesting `` CXML within `` * Pre-recorded audio by nesting `` CXML within `` ## Payment steps There are seven payment steps in the `` process where prompts can be customized (see the `for` attribute section below). Each step that you wish to customize requires its own `` element. ## Attributes Specifies which payment step's prompt you wish to customize. Allowed values: `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, `bank-account-number`, `payment-processing`. See [Payment Steps](#payment-steps) for details. Specifies which attempt number this prompt should be used for. Value from 1 to 10. Useful for providing more detailed instructions after failed attempts. Space-separated list of card types. Allows customization of prompts for specific card types (e.g., different security code lengths). Allowed values: `visa`, `mastercard`, `amex`, `maestro`, `discover`, `optima`, `jcb`, `diners-club`, `enroute`. Space-separated list of error types. Customize error messages for specific failure scenarios. Allowed values: `timeout`, `invalid-card-number`, `invalid-card-type`, `invalid-date`, `invalid-security-code`, `invalid-bank-routing-number`, `invalid-bank-account-number`, `input-matching-failed`. ### Payment step Specifies which payment step's prompt you wish to customize: | Payment Step | Description | | --------------------- | ----------------------------------- | | `payment-card-number` | Prompt for credit/debit card number | | `expiration-date` | Prompt for card expiration date | | `security-code` | Prompt for card security code (CVV) | | `postal-code` | Prompt for billing postal code | | `bank-routing-number` | Prompt for bank routing number | | `bank-account-number` | Prompt for bank account number | | `payment-processing` | Message during payment processing | ## Examples ### Prompt for card number with TTS ```xml Please enter your 16 digit Visa or Mastercard number. ``` ### Prompt for card number with MP3 ```xml https://example.com/signalwire/cxml/audio/card_number.mp3 ``` ### Full transaction example ```xml Welcome! To begin, enter the credit card number you'd like to use for payment. I haven't received your card number yet. Please take a moment to enter your credit card number now. That card number doesn't appear to be valid. Let's try entering it one more time. We can only accept Visa, MasterCard, or American Express cards. Please enter a card number from one of these providers. Great! Now enter your card's expiration date using two digits for the month followed by two digits for the year. I still need your card's expiration date. Please enter two digits for the month, then two digits for the year. That expiration date isn't valid. Remember to use two digits each for month and year - for example, March 2025 would be 0 3 2 5. Now for the security code - you'll find three digits on the back of your card. I'm waiting for your three-digit security code. You can find it on the back of your card. That security code wasn't quite right. Please enter all three digits from the back of your card. For American Express, please enter the four-digit security code from the front of your card. I still need the four-digit security code from the front of your American Express card. That security code wasn't valid. Please enter all four digits from the front of your American Express card. Almost done! Please enter the five-digit zip code for your billing address. We still need your billing zip code. Please enter all five digits now. Perfect! Just a moment while we securely process your payment. ```