The WatsonX AI API offers a robust suite of AI capabilities from IBM, designed to integrate advanced machine learning and cognitive computing into various applications. With these APIs, you can enhance your apps with AI-driven features such as language understanding, speech to text conversion, and visual recognition. Using Pipedream, these capabilities can be seamlessly integrated into automated workflows, allowing you to connect WatsonX AI with other services and automate complex tasks efficiently.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
watsonx_ai: {
type: "app",
app: "watsonx_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.watsonx_ai.$auth.region}.ml.cloud.ibm.com/ml/v4/deployments`,
headers: {
Authorization: `Bearer ${this.watsonx_ai.$auth.oauth_access_token}`,
},
params: {
version: `2023-07-07`,
},
})
},
})
Customer Support Automation: Automate responses in a customer support system by integrating WatsonX AI with a ticketing system like Zendesk. WatsonX AI can analyze incoming support tickets, understand the sentiment and content, and automatically draft appropriate responses or escalate issues based on urgency and sentiment.
Content Recommendations System: Build a content recommendation engine by leveraging WatsonX AI’s natural language understanding. Analyze user interactions and feedback on various contents through Pipedream, then use WatsonX AI to suggest personalized content to users on platforms like WordPress or Shopify.
Real-time Speech Analytics: Enhance a call center application by integrating WatsonX AI’s speech-to-text capabilities. Convert call audio to text in real-time, analyze the text to extract insights, and use these insights to provide real-time assistance to agents or direct calls to appropriate departments.
WatsonX AI uses OAuth authentication. When you connect your WatsonX AI account, Pipedream will open a popup window where you can sign into WatsonX AI and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any WatsonX AI API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://iam.cloud.ibm.com/identity/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=urn:ibm:params:oauth:grant-type:apikey
&
apikey={{custom_fields.api_key}}
POST
https://iam.cloud.ibm.com/identity/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=urn:ibm:params:oauth:grant-type:apikey
&
apikey={{custom_fields.api_key}}