New Intent API

The Wit.ai Team
Feb 20, 2015 · 1 min read

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

Wit.ai

The Wit.ai Team

Written by

The people behind Wit

Wit.ai

Wit.ai

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.

The Wit.ai Team

Written by

The people behind Wit

Wit.ai

Wit.ai

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.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

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