Custom dictionary

To create a custom dictionary using the API:

HTTP Request

PUT https://api.botfuel.io/trainer/api/v0/dictionary

Request Structure

Parameter Type Description Required
words Array Array of words to be put in the custom dictionary Required

Response structure

Parameter Type Description
words Array Array of words to be put in the custom dictionary

Example

curl \
-X PUT 'https://api.botfuel.io/trainer/api/v0/dictionary' \
-d '{
  "words": ["iPhone", "Samsung", "Android"]
}' \
-H "App-Id: $BOTFUEL_APP_ID" \
-H "App-Key: $BOTFUEL_APP_KEY" \
-H "Content-Type: application/json"
// Response
{
  "words": ["iPhone", "Samsung", "Android"]
}