Why wit.ai bot jumps in the middle of the conversation flow? - wit.ai

I am experimenting with a flow-based conversation with wit.ai. I took the example from https://wit.ai/l5t/FlowBased_Example and noticed a strange thing. If you start the bot right from the page above and say immediately "no", the bot calls the answer-tv function and says "Ok. And do you watch sports online?". Checking out the stories of the bot it can be clearly seen that the answer-tv function is could be called only deep in the conversation, the shortest path being:
-> I want to take the survey!
<- Do you watch sports on TV?
-> No
<- [answer-tv]
<- Ok. And do you watch sports online?
How is it possible the the bot has jumped the first steps, found an arbitrary point in the conversation where the user would respond "no" and continued from there? How can one avoid this behavior?

Picture all these stories as connected graphs. Where the entry point is any one of the stories. The vertices are user messages, bot actions and bot replies. The edges are the bookmark links and branches in a story. To understand the flow, draw a graph on sheet yourself and visualise the above conversation. You can regulate the bot behaviour by structuring the graph appropriately.

Related

Eventbrite `expanded` doesn't seem to be working

The organization I work with puts all its events into a series.
I understand I can get all the series and expand them with the expansion series_dates like this:
https://www.eventbriteapi.com/v3/series/*id*/?token=*token*&expand=series_dates
This works nice and it gives me my series with a list of series_dates for all recurring events. Now what I want is to have a very similar approach but at the organizational level:
https://www.eventbriteapi.com/v3/organizations/*id*/events/?token=*token*&series_filter=parents&expand=series_dates
This API call is getting all of the events which are a Parent series (perfect) but it's not listing all of the child series_dates which should be expanded onto the end.
I am starting to believe the API can't handle this request, but any suggestions will be helpful.

Stories sandbox in wit.ai

Let's say I create a story dedicated to giving the weather in a given place, and a story dedicated to listing the possible activities in a given place, and a allowing to buy tickets for them.
Let's say a user launches the second story by entering "what can I do in Paris ?". Bot answers with a list of things and asks the user to input the one he'd like to buy a ticket for.
But, instead of entering a number, the user inputs "What is the current weather in Paris ?". Will the first story be triggered ?
A wit.ai blog post states :
We strengthened the initial overfitting: when a user follows the
scenario of a story, the bot will 100% stick to the story.
Should we repost the intent as a context key so that the next action prediction scope stays within the same story ? Should all end of a story flush the context of all keys (which in our tests seems to be a very good idea not to stick to a story) ?
Thanks for any insights.

wit.ai - Keywords conflict

I am designing a bot with wit.ai and encounter a conflict issue.
In my story the user wants instructions to access a service. I've created an entity service.
There are 2 services available "mailing" and "chat channels" but I want the user to be able to ask instructions for both at once.
Therefore, my entity service has "keywords" for search strategy and "mailing", "chat channels" and "both" as values.
But when I branch the story after the question the bot asks "to which I've added quick answers "mailing", "chat channels" and "both", but at this point I have a conflict between the branches.
When I test the bot on wit.ai, whatever my answer he goes to the "both" branch.
I'm struggling to find out why there is a conflict between the keywords, if someone could help me it would be great.
I've tried to train the bot with small variations of each answer but this doesn't solve my issue.
Here is the solution we came up with for this issue:
instead of creating a new story, start by creating the entityof type traitin the understanding tab
enter all possible values in the understanding tab
once the entity has been properly created, you can use it in a story

Accessing "What are you up to"-comments on foursquare

I am working on a foursquare application where I am depending on user-generated data.
Say for instance that I want to categorize places with rare tap beers on the menu, then I would like users to write in their "What are you up to"-comment something like #RareBeer Pabst Blue Ribbon, and be able to catch that comment.
I understand that my OAuthed user has to befriend users to be able to see this, but how do I proceed from there?
The best way for you to go about this would be to use the Real-Time APIs we detail here: https://developer.foursquare.com/overview/realtime.
Once you set up a Push API consumer, you will be able to get checkins from your OAuthed users sent directly to your server as they occur. Each push will include the shout, if there was one, allowing you to parse the comments your users are leaving as they come in. This is the method that apps like Hashtag Mom ( http://hashtagmom.com/ ) use to be able to gather and act upon user shouts ASAP.

Trac plugin to send email number of new and closed tickets and their details based on define schedule

I am looking for a way or a plugin so that trac sends me email about the number of new or closed tickets (and some information about these tickets also ) for a specific duration lets say for the last three days.
Basically I need to know how many tickets have been created in last week and how many of them have been closed at the end of week.
Of course the email only should be sent to the admin and not to all the users.
For additional Trac funcionality we have Trac plugins, yes. And the first place to look for them is trac-hacks.org .
The excellent TagsPlugin in use overthere already delivers some hints on resources tagged with notification or notifications. The most comprehensive and mature solution is certainly TracAnnouncer with a just reworked configuration interface providing a highly sophisticated opt-in and opt-out subscription system. Unfortunately digest notification are not integrated today.
Still there are other plugins, that fill in the gap, i.e. check the XMailPlugin. It claims to do configurable instant, daily and weekly notifications, so this may be for you. Since this is a relativly new plugin, you should expect some pending issues, but the author might be very open to your suggestion. If you're becoming a heavy user giving valuable test feedback and a bit lucky too, asking kindly could be enought to make things happen.
There's a slightly different way to solve this problem that doesn't require any plugins. First, create a custom "timeline" view that displays the information that you want. In your example, this would be all "opened and closed tickets" starting from "today" and going back three days. When viewing this custom view, you should see a link at the bottom of the page that says "RSS Feed" (on my system, the resulting URL looks something like this: http://myserver/timeline?ticket=on&max=50&authors=&daysback=3&format=rss). Click on this link to subscribe to the feed using your web browser, email client, or other program capable of reading feeds. Now, you can view the results live at any time. What you can do at this point is only limited by the capabilities of your feed reader app, but most can at least be configured to notify you when the feed is updated.