Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Topic Creation & Management
Answered

Input limiter in Power Virtual Agent

(0) ShareShare
ReportReport
Posted on by

Dear friends, colleagues,

Today I'm working on a (classic) Power Virtual Agent of one of my clients. A question is asked in the chat:

jonckhje_0-1716902097037.png

 

 

(sorry for the Dutch version, translations: Question, Ask a question, "What EAN Code is involved?", Identify, Number, Save response as)
Client would like the user not to be able to enter anything but a maximum of 18 numeric values. As far as I can see, I can only have PVA extract numeric values from the input, but I can't limit the input itself.

As you may have guessed, PVA still has quite a lot of mysteries for me, but I'm learning.

Any thoughts?

 

Thanks in advance,

regards,
Jeroen

  • Verified answer
    Expiscornovus Profile Picture
    31,897 Most Valuable Professional on at
    Re: Input limiter in Power Virtual Agent

    Hi @jonckhje,

     

    Like mentioned in the other thread, my suggestion would be to use a custom entity with a regular expression for your EAN Codes, https://learn.microsoft.com/en-gb/microsoft-copilot-studio/advanced-entities-slot-filling#regular-expression-regex-entities

     

    Try the below regex

    (.*)(\d{18})(.*)

     

    eancodes.pngeancodes_regex.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 132

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 81 Super User 2025 Season 1

#3
Pablo Roldan Profile Picture

Pablo Roldan 61

Featured topics