Receiving email address through Amazon Connect/Lex? - amazon-lex

I'm currently trying to set up a bot to collect email address via Connect/Lex using voice. I know this is near impossible to do without spelling it out character by character. I've tried setting custom slots, using AMAZON.EmailAddress, etc, but all options seem to mishear a lot of characters. Has anyone had any luck in implementing this? Thanks!

Sorry Kenny, using AMAZON.EmailAddress is the best approach here.
Unfortunately you are always going to run into issues with email addresses as an address can effectively be a collection of random characters. If you are expecting a particular pattern of email addresses (such as from your company) then you can create your own custom slot with these examples which might have better luck.

Related

Query all addresses by postcode

I need to get all addresses (on house number level) by their zip code - thought about OpenStreetMap but haven't found a way yet to achieve this. Their API can give me a feature of a zip code, but not the addresses in there, how to do this?
I'm open for other web services as well.
After some research it looks as still the best data available for that purpose will be the one offered by official/administrative sources.

rails: what is the best way to track unique clicks?

I'm currently developing an affiliate tool with rails which is generating some unique affiliate links. I used to create those links via bitly and simply fetched the link-clicks through the bitly API. Awesome but if you delete your cookies, boom - click again and it counts again. So kind of useless.
I tried to familiarize with the google analytics api to count unique clicks but believe this is just overhead. Storing the IP address is also not the way I like to work.
Now I'm thinking to keep it simple and store the user's mac address in a database table when he clicks a link. The "stat model" is related to the link model and so I would find out which link was clicked by which mac address. If mac address exists already in the table for the link, don't count it.
Is this a proper way to solve my problem?
I read several articles where also mac addresses can be faked so I fear this can be hijaked in some way.
If you have any awesome ways to work with unique link tracking in rails, I would be curious to work with them.
Thanks for any help and tips.

Does google ever use guesses to find webpages?

If I have a webpage (www.example.com/very_long_random_name.htm) on a site that's already been indexed by google, will it ever be found if it has no incoming links?
Or can google find such unlinked pages by some other method?
No, it will not be indexed. At least in theory, that is. The crucial thing is that there are no incoming links, the fact that the name is long and random does not matter.
However, it is hard to be sure that it really won't be indexed, since incoming links can come from everywhere and without your knowledge. For example some email that contains a link might get indexed (especially if one particicpant in the conversation uses a questionnable mail provider), or someone might post a link on some forum, etc.

Any short URL service that you can POST variables on?

I work for a small SMS marketing company, where we're sending out text message that each contain a unique code for the user (as a variable). My url is rather long, and I want to attach a unique variable for each one.
For example, the full URL might be:
http://www.mybigwebsiteurlishuge.com/more/more/?code={variable}
but I want it to be something like:
http://bit.ly/2398h?code={variable}
Anybody know any services that can do this? Otherwise I need to purchase small domain name just for this.
Thanks so much!
Most shortening services have APIs that you can use to shorten your URLs. Including bit.ly. Yu will have to use their API to the shortened URL.
I kept on looking, and still couldn't find anything suitable, so I got a new 3-character domain name, and also make a redirecting script that changed miniaturized variable names t the full ones. This works just as good really.

Twitter API: how to know what application was used to follow

In the email notification we can see something like
<username> followed you using <appname>.
It is great. But is there any possible way to know the application name using API?
I took a look through the REST API, and I could not find anything that would support this. My guess is that this is a twitter.com feature that is available in the API (yet).
The most logical places I looked were statuses/followers and friendships/show. In both cases there was nothing definitive. Checking the follower emails for my account, I found multiple followers that used applications (like PeopleBrowr and SocialOomph) to follow the account. In most cases, the source on their latest status object matched the application name used to follow me, but that was definitely not a sure thing.
So, to answer your question directly, no I don't think it can be done through the API (not unless there's an undocumented method out there that does this.)
I can, however, think of a way to get that info. One approach would be to set up the email account receiving the follow notifications to forward a copy to a mailbox that is checked by an automated process. When emails show up, parse them to find the app name used to follow you.
I used the following regular expression (in C#) to find the application's name and URI in the email's body:
Match m = Regex.Match(input, #"followed you using\s*<a[^""]+""(?<appUri>[^""]+)""[^>]+>(?<appName>\w*)</a>");
I used m.Groups["appName"].Value to pull out the application name, and m.Groups["appUri"].Value to pull out the URI from the match.
In order to tie the app info to a user, I had to also find the screen name with:
Match m = Regex.Match(user, #"\(#<a[^>]+>(?<screenName>\w*)</a>\) is now following");
I used m.Groups["screenName"].Value to extract the value from the match.

Resources