","aggregateRating":{"@type":"AggregateRating","bestRating":5,"ratingCount":1,"ratingValue":5}}","step":[{"@type":"HowToSection","name":"Sending input","itemListElement":"\n

Sending user input to the chatbot

\n

\n Connect to API · \n Documentation\n  · Details\n

"}]}]
RapidAPI logo

RoboMatic.AI

FREE
By elagizy
Updated 6 days ago
Machine Learning
4.8/10
Popularity Score
1460ms
Latency
100%
Success Rate

RoboMatic.AI API Documentation

A chatbot that can be used to automate your business or for fun.
For more info: https://robomatic.ai
REST API documentation: https://robomatic.ai/doc/API-POST

View API Details
POSTSending input
POSTSending input

Sending user input to the chatbot

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
SessionIDSTRING
REQUIREDSession ID
inSTRING
REQUIREDUser Input
opSTRING
REQUIREDOperation Type
cbidNUMBER
REQUIREDChatbot ID
cbotSTRING
REQUIREDRequesting chatbot response
keySTRING
REQUIREDChatbot Auth Key
cbotSTRING
REQUIREDRequesting chatbot response
Optional Parameters
ChatSourceSTRING
OPTIONALChat channel
Code Snippet
unirest.post("https://robomatic-ai.p.rapidapi.com/api.php")
.header("X-RapidAPI-Host", "robomatic-ai.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("ChatSource=RapidAPI")
.send("SessionID=RapidAPI1")
.send("in=What's 2 plus 5?")
.send("op=in")
.send("cbid=1")
.send("cbot=1")
.send("key=RHMN5hnQ4wTYZBGCF3dfxzypt68rVP")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://robomatic-ai.p.rapidapi.com/api.php
Request Method: POST
Response Headers
"access-control-allow-credentials": "true"
"access-control-allow-headers": "origin, x-requested-with, content-type"
"access-control-allow-methods": "PUT, GET, POST, DELETE, OPTIONS"
"access-control-allow-origin": "https://robomatic.ai"
"cache-control": "no-store, no-cache, must-revalidate"
"content-type": "text/html; charset=UTF-8"
"date": "Wed, 12 Jun 2019 09:30:39 GMT"
"expires": "Thu, 19 Nov 1981 08:52:00 GMT"
"pragma": "no-cache"
"server": "RapidAPI-1.0.16"
"set-cookie": "PHPSESSID=87dcda380f204a49b57fe46816031eba; path=/"
"vary": "Accept-Encoding"
"x-rapidapi-region": "AWS - ap-southeast-1"
"x-rapidapi-version": "1.0.16"
"content-length": "99"
"connection": "Close"
Response Body
{"out":"Ok, so the answer of\u00a02 plus 5 is 7","who":"Chatbot","whotype":2,"script":"","html":""}
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://robomatic-ai.p.rapidapi.com/api.php")
.header("X-RapidAPI-Host", "robomatic-ai.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("ChatSource=RapidAPI")
.send("SessionID=RapidAPI1")
.send("in=What's 2 plus 5?")
.send("op=in")
.send("cbid=1")
.send("cbot=1")
.send("key=RHMN5hnQ4wTYZBGCF3dfxzypt68rVP")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication