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

Intent

List

Gets the list of all available intents for the application.

Example request

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

Example response

[
    {
        "code": "4lg0a7rcwikqwc38l32k3x5po79sfg8n",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "label": "ask_inventory",
        "description": "Import",
        "created_time": "2018-10-03T04:16:04Z",
        "intent_type": 0
    },
    {
        "code": "73z4bzfjh7jzv2th9f0w3f0pm1nhaccp",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "label": "ask_filter",
        "description": "Chức năng filter",
        "created_time": "2018-10-03T04:16:04Z",
        "intent_type": 0
    }
]

Request

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

Parameters

ParameterRequiredDescription
n/an/an/a

Response

Returns a list of available intents for the application.

Create

Creates a new intent with the given parameters.

Example request

curl -X POST \
  https://v3-api.fpt.ai/api/v3/intent \
  -H 'Authorization: Bearer your_application_token' \
  -d '{
        "label":"product_info",
        "description":"Product information"
      }'

Example response

{
    "code": "ppmrtdpcuoxcxd0mg65lg4312pdg3u2e",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "label": "product_info",
    "description": "Product information",
    "created_time": "2018-01-11T16:05:49.2237404+07:00"
}

Request

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

Parameters

ParameterRequiredDescription
labelyesname of the intent, must use a-z0-9_
descriptionyesdescription of the intent

Response

Returns a JSON object represents the created intent.

Get

Gets an intent with the given name.

Example request

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

Example response

{
    "code": "ppmrtdpcuoxcxd0mg65lg4312pdg3u2e",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "label": "product_info",
    "description": "Product information",
    "created_time": "2018-01-11T09:05:49Z"
}

Request

GET https://v3-api.fpt.ai/api/v3/intent/:intent_label

Parameters

ParameterRequiredDescription
intent_labelyesname of the intent

Response

Returns a JSON object that represents the intent.

Delete

Deletes an intent specified by name.

Example request

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

Example response

HTTP 200 OK

Request

DEL https://v3-api.fpt.ai/api/v3/intent/:intent_label

Parameters

ParameterRequiredDescription
intent_labelyesname of the intent

Response

Returns HTTP Status 200 if the request succeed.

Update

Updates an intent 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/intent/product_info \
  -H 'Authorization: Bearer your_application_token' \
  -d '{
    "description":"New Description"
  }'

Example response:

{
    "code": "ppmrtdpcuoxcxd0mg65lg4312pdg3u2e",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "label": "product_info",
    "description": "New Description",
    "created_time": "2018-01-11T09:05:49Z"
}

Request

PUT https://v3-api.fpt.ai/api/v3/intent/:intent_label

Parameters

ParameterRequiredDescription
descriptionyesnew description of the intent

Response

Returns a JSON object that represents the updated intent.

List samples of intent

List samples of intent.

Example request

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

Example response

[
    {
        "code": "m1iid0dbif63meubpw5v2xn72k8g7hh4",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "Hi, em có người yêu chưa",
        "created_time": "2018-10-03T04:16:11Z",
        "intent_label": "chao_hoi",
        "intent_type": 0,
        "entities": []
    },
    {
        "code": "b7fxxr2sq6ycdrimaxlvcitr6x35tieo",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "Shop ơi cho em hỏi chút thông tin với",
        "created_time": "2018-10-03T04:16:10Z",
        "intent_label": "chao_hoi",
        "intent_type": 0,
        "entities": []
    }
]

Request

GET https://v3-api.fpt.ai/api/v3/intent/{label}/samples

Parameters

ParameterRequiredDescription
labelyesThe label of intent

Response

Returns a list of samples of intent for the application.

Delete all samples of intent

Delete all samples of intent.

Example request

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

Example response

{
    "message": "Deleted"
}

Request

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

Parameters

ParameterRequiredDescription
labelyesThe label of intent

Response

Returns a message of status of delete request.

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