Home / All Integrations / IBM Watson

Connect IBM Watson to your chatbot

Use IBM Watson Assistant NLP in your CSML chatbot


Use IBM Watson assistant to add NLP to your CSML flows.

In order to use this app, you will need to have an account on the IBM platform and a Watson assistant.

Refer to this documentation to create an assistant. When your assistant is ready, retrieve your API key, instance URL and assistant ID in your assistant's settings panel to configure this app.

Methods

analyze

Predict the intent and entities of the message posted to this endpoint.

do intent_entities = Fn(
  "ibm/watson",
  method = "analyze"
  params = {
    "text": "Hello",
  }
)

Response:

{
  "success": true,
  "response": {
    "output": {
      "intents": [
        {
          "intent": "General_Greetings",
          "confidence": 1
        }
      ],
      "entities": [],
      "generic": [
        {
          "response_type": "text",
          "text": "Hello. Good afternoon"
        }
      ]
    },
    "context": {
      "global": {
        "system": {
          "turn_count": 1
        },
        "session_id": "a7794377-2b23-48f3-9097-2082b3e9ae4e"
      },
      "skills": {
        "main skill": {
          "system": {
            "state": "eyJzZXNzaW9uX2lkIjoiZDc3OTQzNzctMmIyMy00OGYzLTkwOTctMjA4MmIzZTlhZTRlIiwic2tpbGxfcmVmZXJlbmNlIjoibWFpbiBza2lsbCIsImFzc2lzdGFudF9pZCI6ImY4YmJhY2U0LTk3MDUtNGJiNi1hZGY1LTdhMGRjMzIzNzA4ZSIsImluaXRpYWxpemVkIjp0cnVlLCJkaWFsb2dfc3RhY2siOlt7ImRpYWxvZ19ub2RlIjoicm9vdCJ9XSwiX25vZGVfb3V0cHV0X21hcCI6eyJub2RlXzFfMTQ5NTAyMjMwNTE0MyI6WzBdfX0="
          }
        }
      }
    }
  }
}

Discover similar integrations:

Amazon Comprehend
Amazon Lex
Clevy Comprehension API
Dialogflow
Hugging Face
Lettria
Rasa
SAP Conversational AI (Recast.ai)
Wit.ai

Many more integrations are coming!

If you have a cool integration in mind, drop us an email on contact@csml.dev and tell us all about it!

Many of our 55 currently available integrations come directly from your suggestions!

Join the Community
on Slack Slack

Come and learn all about CSML with other chatbot enthusiasts on the Slack CSML Community! ūü§ó