Our v2 Chat Bot API

Use the new super fast chatbot API!

Endpoint

https://api.rotic.ir/v2/services/{token}/ai

Parameters (value-type)
Status
data (string)
required
required
unique_token (int)
required
user_data (object)
optional

Responses
Code: 200
Success
If everything is OK, the response contains a text.
{
    "provider": {
        "website": "https://rotic.ir",
        "source": "AI Core V2"
    },
    "response":[
         {
            "value": "The response Message",
            "buttons": [],
            "images": null,
            "type": "text"
        },
    ]
    "status": true,
    "error": {
        "code": null,
        "message": null
    }
}
                             
Code: 0037
0037
If you forgot to send a valid API parameter
{
    "provider": {
        "website": "https://rotic.ir",
        "source": "AI Core V2"
    },
    "response":[
         {
            "value": " برای دریافت پاسخ مناسب {YOUR-ENTERPRISE-NAME} لطفا با شماره تماس {YOUR-SUPPORT-PHONE} و یا ایمیل {YOUR-SUPPORT-EMAIL} در ارتباط باشید ",
            "buttons": [],
            "images": null,
            "type": "text"
        },
    ]
    "status": true,
    "error": {
        "code": null,
        "message": null
    }
}
                             
Code: 401
401
If send a request without generating a unique_token
{
    "provider": {
        "website": "https://rotic.ir",
        "source": "AI Core V2"
    },
    "response":[]
    "status": true,
    "error": {
        "code": null,
        "message": null
    }
}