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 Answers
0
Accepted Answer

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

MJ
answered 4 months ago
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
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions