Lex Slot Regex Help

0

Trying to build a lex (Amazon LexV2) bot to look for account IDs that match our company's format. but having issues with the Slot.

I'm using an extended alphanumeric slot type (Slots>Built-In>Amazon.alphanumeric) so I can use regex to match the pattern for the account IDs. Every time I try to test it though, it doesn't work. All my other slots work, just not this one. Is there a trick or something to get extended alphanumeric slots to work?

Example for the Regex I'm using - CP[0-9]{9} (so like CP123456789)

Any suggestions?

2 réponses
0
Réponse acceptée

I got clarification from someone at Amazon. The regex pattern needed to be: [cC][pP][0-9]{9}

profile picture
MJ
répondu il y a 5 mois
0

When you save the slot with the regex, is it saving or do you get an error on saving? Are you using multiple slots of alphanumeric type at the same time?

david

profile picture
dmacias
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions