Wit.ai API enables your apps to process natural language and understand human commands contextually. With it, you can build conversational interfaces, decipher intent from text or voice inputs, and train your model to improve recognition. Pipedream provides a seamless platform to trigger workflows using this API, allowing the automation of tasks based on language cues. It's perfect for crafting custom bots, enhancing customer service, or streamlining internal operations by interpreting human requests and taking action accordingly.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wit_ai: {
type: "app",
app: "wit_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.wit.ai/message?v=20170307&q=hello`,
headers: {
Authorization: `Bearer ${this.wit_ai.$auth.app_token}`,
},
})
},
})
Customer Support Automation: Use Wit.ai’s language understanding to interpret customer inquiries received via email or chat. Combine it with a CRM like Salesforce on Pipedream to automatically categorize and assign tickets, or even generate and send basic responses to common questions.
Voice-Controlled Tasks: Build a system where voice commands captured from IoT devices are sent to Wit.ai. Analyze the intent and execute related smart home actions, like adjusting thermostats or controlling lights, by connecting to home automation services like Philips Hue or Nest on Pipedream.
Content Categorization: Implement an automated content analysis system that uses Wit.ai to understand and categorize user-generated content or customer feedback. Link it with a data visualization tool like Google Sheets on Pipedream to track trends, sentiment, and topics for marketing insights or product improvements.
wit.ai uses API keys for authentication. When you connect your wit.ai account, Pipedream securely stores the keys so you can easily authenticate to wit.ai APIs in both code and no-code steps.
In Wit.AI, the API key are available Settings menu on the top right. This is explained in step 5 "Query your app" of the Quickstart.