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 Respuestas
0
Respuesta aceptada

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

profile picture
MJ
respondido hace 5 meses
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
respondido hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas