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개 답변
0
수락된 답변

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

profile picture
MJ
답변함 5달 전
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
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠