wit-ai / wit

Natural Language Interface for apps and devices
https://wit.ai/
940 stars 91 forks source link

How to create intents in latest version? #231

Closed raghavendrav6 closed 7 years ago

raghavendrav6 commented 8 years ago

Hi,

This is not an issue. I was going through some videos and docs. It is changed that how to create an intent. I am a newbie, Please tell me or share a link which explains how to create/use a custom intent in console. I have tried using HTTP API but its giving an error "Cannot create intents, it confuses your bot". I am not sure what's wrong.?

Thanks

avinash8526 commented 8 years ago

Create a new story , then goto understanding tab , follow this gif, in this example below I have created pizza_intent as new intent it console20160527145854

leeola commented 8 years ago

This seems odd, won't pizza_intent be mapped to an entity rather than an "intent"? It appears that, on the current Bot Engine, there are no Intents. Only stories, that map to Actions. Training seems to only map context-less sentences to entities.

avinash8526 commented 8 years ago

@leeola true , in new bot engine , there is no intent .Sorry my bad. I think they have replaced the intent with the search strategy . Currently one can have 3 different search strategy mapped to an entity. https://wit.ai/docs/recipes#which-entity-should-i-use

RameshKrishnamoorthy commented 8 years ago

Are you guys able to create a new entity which can have multiple different values? For example, if the entity was pizza, how do you train the Bot Engine to understand the different pizzas? Do we need to add all the different pizza names as values to the entity? Or, will the bot engine be intelligent enough to understand a pizza name from a sentence once it is trained on a few? It doesn't seem to work like that and there is no one help also!

avinash8526 commented 8 years ago

goto understanding tab and train bot with few sentences and add proper entity ,U don't need to add value always. Values are returned whenever api call is made. Since wit.ai is damm slow, whenever u hit validate, wait for the status icon to go yellow and then green. it means bot engine has trained itself. If u try to validate too many expression at once , nothing will be saved at backend.

athirauk commented 8 years ago

where does the stories,entities and intent in wit.ai gets stored?

l5t commented 8 years ago

They are stored inside the Facebook datacenter. You can get a copy via the import/export: https://wit.ai/docs/recipes#copyexportversion-my-app

lbustelo commented 7 years ago

I may be overloading this question, but I want to know then answer to this, but programatically. I the API docs it says that that /intents API is deprecated. What is the replacement and where can I find examples/instructions?

blandinw commented 7 years ago

@lbustelo We merged "intents" and "entities" last year. Intents are now simple entities of type "trait". Intents as you know them are gone.

You can programmatically manipulate entities using the /entities API, or read specifically about how "intents" work now, or read more about "trait" entities and the 2 other types.

Feel free to reopen if you have further questions.

lbustelo commented 7 years ago

Thanks @blandinw. I'll give that a try.

anjitha-devan commented 5 years ago

@blandinw ,How can I add a follow up intent on wit.ai like in dialogflow?

jtliao commented 5 years ago

Hi @anjitha-devan, there isn't really an idea of a follow up intent in Wit, you would have to add the logic on your side after receiving a message of a certain intent

anjitha-devan commented 5 years ago

Thanks @jtliao

anjitha-devan commented 5 years ago

@jtliao, @blandinw, I want to implement a location selection by user in Facebook chat bot. While I am looking into message.attachment, it don't have a location type. The chat bot is sending a map and user selecting the required location on map. How can I implement this?

jtliao commented 5 years ago

hi @anjitha-devan, this seems outside the scope of Wit, unfortunately I don't think we're the best to help you with this issue.

Additionally, in the future, please avoid following up on old threads with new issues, it makes it harder to track.

mohit2494 commented 5 years ago

@lbustelo We merged "intents" and "entities" last year. Intents are now simple entities of type "trait". Intents as you know them are gone.

You can programmatically manipulate entities using the /entities API, or read specifically about how "intents" work now, or read more about "trait" entities and the 2 other types.

Feel free to reopen if you have further questions.

This was really helpful.