Wit.ai
Published in

Wit.ai

New Intent API

If you have been using Wit.ai, you may have wanted to create or update intents programmatically (i.e. without logging in to the Wit Console).

One frequent request we have been hearing from the community is to add expressions programmatically to an existing intent. This would be helpful if you already have a corpus of synonymous expressions that you want to load into an intent to save you the time of typing each and every expression into the Console.

You can now use the HTTP Intent API to not only create or update an intent but also add or remove expressions from existing ones.

Here is an example of Intent creation via the API:

curl -XPOST 'https://api.wit.ai/intents?v=20141022' \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"greetings_mood",
"doc":"detect questions about mood",
"expressions":[{
"body" : "how are you?"
}, {
"body" : "what\u0027s up"
},{
"body" : "how are you doing"
}]}'

Note that it is currently not possible to tag entities while submitting expressions via the API. We will add this in the future.

Please contact us if you have any questions.

Team Wit

--

--

--

Wit.ai makes it easy for developers to build applications and devices that you can talk or text to. Our vision is to empower developers with an open and extensible natural language platform. We'll use this blog to share news, feature announcements and stories from our community.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
The Wit.ai Team

The Wit.ai Team

The people behind Wit

More from Medium

Object Detection using Tensorflow Lite for Trash

Meme about garbage

Concurrency, async and await

How to Deploy Angular Universal on AWS Elastic Beanstalk

FAKE NEWS DETECTION