skip to Main Content

API

All the models created on Botgen Platform can be either downloaded as a RASA file or called directly through Botgen API.

Click on the  button and on API to get access to the API documentation of your model.

Once the documentation popup opened, click on the  button to generate your security token.

Once your model is in production, we recommend that you activate the « Save sentences » option. It will allow us to log your sentences when you call the API. This option will be useful with our next release, including features to display conversations and to filter production data. Activating this option now will enable you to benefit from all your historic data when the feature is realized.

You can post data to our API with the following format:

  
'{"q" : "Je cherche un japonais pour ce soir.", "model": "5c758065ddc4be03a3fbb90d", "project": "5c46bb2a51b6757555db3e21"}'
  

The full curl request will look like the following example:

  
curl -XPOST https://platform.botgen.fr/parse -H "Content-Type: application/json" -d '{"token":"Génerer un token","q":"Je cherche un japonais pour ce soir.", "model":"5c758065ddc4be03a3fbb90d", "project":"5c46bb2a51b6757555db3e21"}'
  

The response of the API will have the following format:

  
{
  "model": "5c758065ddc4be03a3fbb90d",
  "project": "default",
  "text": "Je cherche un japonais pour ce soir.",
  "entities": [
    {
      "start": 14,
      "end": 23,
      "entity": "SPECIALITY",
      "value": "japonais",
      "extractor": "ner_crf",
      "confidence": 0.8819545859513683
    }
  ],
  "intent": {
    "confidence": 0.9903529680716037,
    "name": "recherche_etab"
  },
  "intent_ranking": [
    {
      "confidence": 0.9903529680716037,
      "name": "recherche_etab"
    },
    {
      "confidence": 0.008077531306332564,
      "name": "reservation"
    },
    {
      "confidence": 0.001487562350997747,
      "name": "yes"
    },
    {
      "confidence": 0.00004340141218560424,
      "name": "no"
    },
    {
      "confidence": 0.00003853685888043946,
      "name": "cancel"
    }
  ]
}
  

API

All the models created on Botgen Platform can be either downloaded as a RASA file or called directly through Botgen API.

Click on the  button and on API to get access to the API documentation of your model.

Once the documentation popup opened, click on the  button to generate your security token.

Once your model is in production, we recommend that you activate the « Save sentences » option. It will allow us to log your sentences when you call the API. This option will be useful with our next release, including features to display conversations and to filter production data. Activating this option now will enable you to benefit from all your historic data when the feature is realized.

You can post data to our API with the following format:

  
'{"q" : "Je cherche un japonais pour ce soir.", "model": "5c758065ddc4be03a3fbb90d", "project": "5c46bb2a51b6757555db3e21"}'
  

The full curl request will look like the following example:

  
curl -XPOST https://platform.botgen.fr/parse -H "Content-Type: application/json" -d '{"token":"Génerer un token","q":"Je cherche un japonais pour ce soir.", "model":"5c758065ddc4be03a3fbb90d", "project":"5c46bb2a51b6757555db3e21"}'
  

The response of the API will have the following format:

  
{
  "model": "5c758065ddc4be03a3fbb90d",
  "project": "default",
  "text": "Je cherche un japonais pour ce soir.",
  "entities": [
    {
      "start": 14,
      "end": 23,
      "entity": "SPECIALITY",
      "value": "japonais",
      "extractor": "ner_crf",
      "confidence": 0.8819545859513683
    }
  ],
  "intent": {
    "confidence": 0.9903529680716037,
    "name": "recherche_etab"
  },
  "intent_ranking": [
    {
      "confidence": 0.9903529680716037,
      "name": "recherche_etab"
    },
    {
      "confidence": 0.008077531306332564,
      "name": "reservation"
    },
    {
      "confidence": 0.001487562350997747,
      "name": "yes"
    },
    {
      "confidence": 0.00004340141218560424,
      "name": "no"
    },
    {
      "confidence": 0.00003853685888043946,
      "name": "cancel"
    }
  ]
}
  
Button Text
Back To Top