Alrighty then
Alrighty then

Reputation: 127

Regex in an API.ai entity

Is it possible to detect an entity using a regex? For example, I want a number starting with '91xxxxxxx' to be mapped with an entity named EmployeeID. So if the user says something like - "Please pull out today's report for 91xxxxxxx", I should be able to map the number to the EmployeeID entity.

Upvotes: 3

Views: 2730

Answers (1)

Aravind M
Aravind M

Reputation: 116

There are multiple requests about this on the API.AI forum. Unfortunately, presently the answer to your question is No.

The current suggestion is to use the @sys.any wildcard and implement the regex functionality in your business logic.

Upvotes: 2

Related Questions