Page 1 of 1

Questions about custom fields

Posted: Mon Jul 17, 2017 6:23 pm
by Lars
Hi,

I'm trying to create 2 custom fields to prompt the user and capture alpha numeric data.

I'm actually doing this to avoid using your default address inputs, which I created a prior ticket about, as I also want to support international addresses.

I'm confused as to how I'd accomplish this with SRGS+XML grammar.

Here's a link to a screenshot of what I'm trying to do:

https://www.evernote.com/l/AEfGZY8m4qlJ ... JSYcQPpZZU

Any example grammer you could provide for a custom field would help. Both of these would be spoken inputs from the user.

Thanks,
Lars

Re: Questions about custom fields

Posted: Tue Jul 18, 2017 11:50 am
by support
It seems like you want open ended data collection, which is impossible for VXML grammars. If you want to build your own address grammars, instead of collecting data and passing it to a 3rd party API, you need to first call your 3rd party API to gather all possible addresses, and then build a grammar based on that.

Every country's address system is different, so you'll have to determine what is the best way to determine how to divide up the country, whether it's based on postal code, province, region, subregion, district, city, community, etc.

Re: Questions about custom fields

Posted: Tue Jul 18, 2017 1:09 pm
by Lars
support wrote:It seems like you want open ended data collection, which is impossible for VXML grammars. If you want to build your own address grammars, instead of collecting data and passing it to a 3rd party API, you need to first call your 3rd party API to gather all possible addresses, and then build a grammar based on that.

Every country's address system is different, so you'll have to determine what is the best way to determine how to divide up the country, whether it's based on postal code, province, region, subregion, district, city, community, etc.
AH- ok this makes more sense. So the laymen way to think of this is essentially:

VXML grammar shows available options - the user's speech is then matched to the closest listed option?

This all seems very doable and would allow skipping the state question entirely for me as well as standardizing the address formatting via a 3rd party API that I'm using.

The one piece that I can't get my head around how I'd handle are sub-address info. ie apt/unit/floor/etc designations and related alpha-numeric entries. (i.e. Apt B5)

Would the approach here be to compile a grammar which is a list of every possible combination of this addresses unit/suite numbers?

Does your built in address capture fields include this for apartments/buildings?

Thanks

Re: Questions about custom fields

Posted: Wed Jul 19, 2017 10:13 am
by support
If you know something will be digits only, than that part is simple enough. However, there is no open ended alphanumeric collection. You will have to know all possible unit/suite numbers and include them in your grammar.

We do not have an address grammar that includes apartment numbers. We only have built in street address grammars.

Re: Questions about custom fields

Posted: Wed Jul 19, 2017 12:26 pm
by Lars
Thank you