Documentation

Documentation

  • Conversation
  • Reader
  • Speech
  • Console
  • AI Agents
  • Languages iconEnglish
    • Tiếng Việt
    • Janpanese

›Natural Language Processing

Documentation

  • Overview
  • I. Chatbot Introduction

    • What is Chatbot
    • Chatbot's purposes
    • Popular types of Chatbot
    • Benefits of using FPT.AI Chatbot
    • Starting with FPT.AI

    II. Building Chatbot on FPT.AI Platform

    • Working Mechanism
    • Bot building process
    • Creating your Chatbot
    • Natural Language Processing - NLP
    • Answer scenarios
    • New Bot scenarios - Bot Builder
    • Answer cards
    • Step connecting buttons
    • Getting customer's information using Form cards
    • Variable settings and management
    • Variable condition review
    • Memories
    • Send/get information via JSON API card
    • Reminder
    • Advanced functions
    • Persistent menu

    III. History

    • History - Updating Bot knowledge

    IV. Multi-channel Integration

    • Integrate with Facebook
    • Integrate with Facebook at Work
    • Integrate with Viber
    • Integrate with Zalo
    • Integrate with website
    • Webhook

    V. Broadcast

    • Broadcast

    VI. Auto Comment

    • Auto comment on Facebook

    VII. Automation Test

    • Check base on testcases
    • Auto create testcases

    VIII. Analytics

    • Introduction
    • Number of user's requests
    • Top matched intents
    • Chat with Bot
    • Number of new users
    • Top scenarios
    • Number of messages bot answered
    • Number of user's requests per hour
    • Number of active users per hour
    • Real-time analytics
    • Broadcast report

    X. Rating and Survey

    • Rating
    • Survey

    XI. Bot Setting - Management

    • Introduction
    • Bot information
    • Messages management
    • Data management
    • Bot intent confidence
    • Delete Bot data
    • Delete bot
    • Transfer bot ownership
    • Version

    XII. Bot Roles

    • Bot roles

    XIII. Chatbot SDK

    • Chat Bot SDK
  • Appendices

Live Support

  • Introduction
  • Customer list interface
  • Customer support flow
  • Note feature
  • Suppoter chat
  • KPI report feature
  • Ticket config
  • Ticket report
  • Archive conversation
  • Ticket management
  • Auto assign to supporters

Tutorials (Videos)

  • 1. Brief overview of FPT.AI
  • 2. Using QnA feature to create a Chatbot
  • 3. Creating Chatbot with complicated scenarios
  • 4. Precondition fucntion in Scenarios
  • 5. Random answer function in Scenarios
  • 6. NLP feature
  • 7. Exact match and Predictive Match in NLP
  • 8. History of Recognition
  • 9. Broadcast feature
  • 10. Live Support feature
  • 11. Persistent Menu
  • 12. Auto-comment feature on Facebook
  • 13. Bot roles
  • 14. Bot configuration in Settings section
  • 15. Integration Chatbot with Facebook
  • 16. Integration Chatbot with Facebook at Work

API Reference

  • Introduction
  • General
  • Natural Language Processing

    • Intent
    • Entity
    • Sample
    • Train
    • Predict
    • Keyword
    • Dictionary

    Dialogue Management

    • Get Answer
    • JSON Card
    • Types of the message

API Reference

Entity

List

Gets the list of all available entities for the application.

Example request

curl -X GET \
  https://v3-api.fpt.ai/api/v3/entity \
  -H 'Authorization: Bearer your_application_token'

Example response

[
    {
        "code": "7j0lqsf2phw10oik1vkckl0dlf1k9msz",
        "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
        "label": "qty",
        "type": 1,
        "description": "Quantity",
        "created_time": "2018-01-11T09:22:40Z"
    },
    {
        "code": "qj9rbjqjazy8w73fr1h2q71zqct6dsz8",
        "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
        "label": "product_name",
        "type": 1,
        "description": "Product name",
        "created_time": "2018-01-11T09:18:31Z"
    }
]

Request

GET https://v3-api.fpt.ai/api/v3/entity

Parameters

ParameterRequiredDescription
n/an/an/a

Response

Returns a list of available entities for the application.

Create

Creates a new entity with the given parameters.

Example request

curl -X POST \
  https://v3-api.fpt.ai/api/v3/entity \
  -H 'Authorization: Bearer your_application_token'
  -d '{
          "label":"product_name",
          "description":"Product name",
          "type": 1
      }'

Example response

{
    "code": "qj9rbjqjazy8w73fr1h2q71zqct6dsz8",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "label": "product_name",
    "type": 1,
    "description": "Product name",
    "created_time": "2018-01-11T16:18:31.1608251+07:00"
}

HTTP Request

POST https://v3-api.fpt.ai/api/v3/entity

Parameters

ParameterRequiredDescription
labelyesname of the entity, must use a-z0-9_
descriptionyesdescription of the entity
typeyestype of the entity, value: 1: keyword & freetext; 2: keyword; 3: freetext

Response

Returns a JSON object represents the created entity.

Get

Gets an entity with the given name.

Example request

curl -X GET \
  https://v3-api.fpt.ai/api/v3/entity/product_name \
  -H 'Authorization: Bearer your_application_token'

Example response

{
    "code": "qj9rbjqjazy8w73fr1h2q71zqct6dsz8",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "label": "product_name",
    "type": 1,
    "description": "Product name",
    "created_time": "2018-01-11T09:18:31Z"
}

HTTP Request

GET https://v3-api.fpt.ai/api/v3/entity/:label

Parameters

ParameterRequiredDescription
labelyesname of the entity

Response

Returns a JSON object that represents the intent.

Delete

Deletes an entity specified by name.

Example request

curl -X DELETE \
  https://v3-api.fpt.ai/api/v3/entity/product_name \
  -H 'Authorization: Bearer your_application_token'

Example response

HTTP 200 OK

HTTP Request

DEL https://v3-api.fpt.ai/api/v3/entity/:label

Parameters

ParameterRequiredDescription
labelyesname of the entity

Response

Returns HTTP Status 200 if the request succeed.

Update

Updates an entity specified by its name with the given parameters. You can update the description only.

Example request

curl -X PUT \
  https://v3-api.fpt.ai/api/v3/entity/product_name \
  -H 'Authorization: Bearer your_application_token'
  -d {
    "description":"New Description",
    "type":1
}

Example response

{
    "code": "qj9rbjqjazy8w73fr1h2q71zqct6dsz8",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "label": "product_name",
    "type": 1,
    "description": "New Description",
    "created_time": "2018-01-11T09:18:31Z"
}

Request

PUT https://v3-api.fpt.ai/api/v3/entity/:label

Parameters

ParameterRequiredDescription
descriptionyesnew description of the entity
typeyestype of the entity, value: 1: keyword & freetext; 2: keyword; 3: freetext

Response

Returns a JSON object that represents the updated entity.

Get all samples of entity

List all samples of entity.

Example request

curl -X GET \
  https://v3-api.fpt.ai/api/v3/entity/{lable}/samples \
  -H 'Authorization: Bearer your_application_token'

Example response

[
  {
        "code": "alpqyg5bnzqsl2p8ftnp6ufesa9ocigj",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "Thẻ nhớ ngoài hỗ trợ bao nhiêu GB?",
        "created_time": "2018-10-03T04:16:07Z",
        "intent_label": "ask_attribute",
        "intent_type": 0,
        "entities": [
            "the_nho_ngoai"
        ]
    },
    {
        "code": "d1ujxrmhebjv59mxbxsepr64pd3pxm49",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "Redmi note 5 có hỗ trợ thẻ nhớ không",
        "created_time": "2018-10-03T04:16:07Z",
        "intent_label": "ask_attribute_y_n",
        "intent_type": 0,
        "entities": [
            "the_nho_ngoai"
        ]
    }
]

Request

PUT https://v3-api.fpt.ai/api/v3/entity/{label}/samples

Parameters

ParameterRequiredDescription
labelyesThe label of the entity

Response

Returns the list of samples of entity.

Delete all samples of entity

Delete all samples of entity.

Example request

curl -X DELETE \
  https://v3-api.fpt.ai/api/v3/entity/{label}/samples \
  -H 'Authorization: Bearer your_application_token'

Example response

{
    "message": "Deleted"
}

Request

DELETE https://v3-api.fpt.ai/api/v3/entity/{label}/samples

Parameters

ParameterRequiredDescription
labelyesThe label of entity

Response

Returns a message of status of delete request.

← IntentSample →
  • List
    • Request
    • Response
  • Create
    • HTTP Request
    • Response
  • Get
    • HTTP Request
    • Response
  • Delete
    • HTTP Request
    • Response
  • Update
    • Request
    • Response
  • Get all samples of entity
    • Request
    • Response
  • Delete all samples of entity
    • Request
    • Response
Conversation
DocumentationAPI ReferenceTutorials (Video)
Reader
DocumentationAPI ReferenceTutorials
Speech
DocumentationAPI ReferenceTutorials
Copyright © 2025 FPT Corporation