Documentation

Documentation

  • Conversation
  • Reader
  • Speech
  • Console
  • AI Agents
  • Languages iconTiếng Việt
    • English
    • Janpanese

›Xử lý ngôn ngữ

Tài liệu

  • Giới thiệu
  • I. Giới thiệu Chatbot

    • Chatbot là gì
    • Mục đích của Chatbot
    • Các loại Chatbot phổ biến
    • Lợi ích khi sử dụng Chatbot FPT.AI
    • Bắt đầu với FPT.AI

    II. Xây dựng chatbot trên nền tảng FPT.AI

    • Cơ chế hoạt động
    • Quy trình xây dựng Bot
    • Tạo Chatbot
    • Xử lý ngôn ngữ tự nhiên - NLP
    • Kịch bản tạo câu trả lời
    • Kịch bản Bot - Bot Builder (mới)
    • Các thẻ trả lời
    • Nút liên kết bước
    • Lấy thông tin khách hàng sử dụng thẻ Form
    • Cài đặt và quản lý biến
    • Kiểm tra điều kiện của biến
    • Thẻ bộ nhớ
    • Gửi/ nhận thông tin qua thẻ JSON API
    • Tính năng nhắc nhở
    • Tính năng nâng cao
    • Menu cố định

    III. Lịch sử

    • Cập nhập hiểu biết của Bot

    IV. Tích hợp trên các kênh chat

    • Tích hợp với Facebook
    • Tích hợp với Facebook at Work
    • Tích hợp với Viber
    • Tích hợp với Zalo
    • Tích hợp vào website
    • Webhook

    V. Gửi thông báo

    • Gửi thông báo

    VI. Tự động trả lời bình luận

    • Tự động trả lời bình luận trên Facebook

    VII. Tính năng kiểm tra tự động

    • Kiểm tra dựa trên testcases
    • Tự động tạo testcases theo kịch bản thực của Bot

    VIII. Thống kê

    • Giới thiệu tính năng thống kê
    • Thống kế số lượng yêu cầu của người dùng
    • Xếp hạng ý định
    • Chat với Bot
    • Số lượng người dùng mới
    • Xếp hạng kịch bản
    • Số tin nhắn Bot trả lời theo kịch bản
    • Số yêu cầu theo từng giờ
    • Số người dùng theo từng giờ
    • Thống kê theo thời gian thực
    • Thống kê cho gửi thông báo

    XI. Đánh giá và Khảo sát

    • Tính năng đánh giá
    • Tính năng khảo sát

    XI. Cài đặt - Quản lý Bot

    • Cài đặt - Quản lý Bot
    • Thông tin Bot
    • Quản lý tin nhắn
    • Quản lý dữ liệu
    • Độ tin cậy của Bot
    • Xóa dữ liệu của Bot
    • Xóa Bot
    • Chuyển quyền sở hữu Bot
    • Phiên bản

    XII. Vai trò trên Bot

    • Vai trò trên Bot

    XIII. Chatbot SDK

    • Chat Bot SDK
  • Appendices

Hỗ trợ trực tuyến

  • Giới thiệu hỗ trợ trực tuyến
  • Giao diện danh sách khách hàng
  • Luồng hỗ trợ trực truyến
  • Tính năng ghi chú
  • Trò chuyện nội bộ
  • Tính năng báo cáo KPI
  • Cấu hình báo cáo phiên hỗ trợ
  • Báo cáo Phiên hội thoại
  • Lưu trữ cuộc trò chuyện
  • Quản lý luồng thông tin thu thập
  • Tự động chỉ định

Hướng dẫn (Videos)

  • Tổng quan nền tảng tạo chatbot FPT.AI Conversation
  • Tạo chatbot hỏi đáp với tính năng QnA
  • Tạo Chatbot với kịch bản phức tạp
  • Tính năng Precondition trong mục Kịch bản
  • Chức năng Trả lời ngẫu nhiên trong khi thiết kế Chatbot
  • Dạy chatbot hiểu khách hàng với tính năng NLP
  • Trích xuất chính xác và trích xuất tiên đoán trong NLP
  • Theo dõi Lịch sử nhận diện
  • Tính năng Gửi thông báo
  • Chức năng Hỗ trợ trực tuyến
  • Thiết lập Menu cố định
  • Tính năng Tự động bình luận trên Facebook
  • Thiết lập Vai trò trên Bot
  • Cấu hình Bot trong mục Cài đặt
  • Kết nối Chatbot với Facebook
  • Kết nối Chatbot với Facebook at Work

API

  • Giới thiệu
  • Tổng quan
  • Xử lý ngôn ngữ

    • Ý định
    • Thực thể
    • Câu mẫu
    • Đào tạo
    • Tiên đoán
    • Từ khóa
    • Từ điển

    Quản lý hội thoại

    • API Lấy câu trả lời của bot
    • Thẻ JSON
    • Các loại tin nhắn

API Reference

Sample

List

Gets the list of all available samples.

Example request

curl -X GET \
  https://v3-api.fpt.ai/api/v3/sample \

Example response:

[
    {
        "code": "0lvh6j25vvzw5bfq9ew45g0u3x8ndumc",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "Cho hỏi đổi cũ lấy samsung-galaxy-s9-22246 như thế nào?",
        "created_time": "2018-10-03T04:16:11Z",
        "intent_label": "ask_general_information",
        "intent_type": 0,
        "entities": [
            "thu_cu_doi_moi"
        ]
    },
    {
        "code": "2890odc6jatr4wxlvqv8txzk3rtkv5ip",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "Có phụ kiện máy samsung-galaxy-s9-22246 không?",
        "created_time": "2018-10-03T04:16:11Z",
        "intent_label": "ask_product",
        "intent_type": 0,
        "entities": [
            "phu_kien"
        ]
    },
    {
        "code": "3ov9x6gowo1uvwewou9xg7qhljz3ht5e",
        "app_code": "dfd6908df08cf9d825f9ca9d38bf4677",
        "content": "cho hỏi về dòng máy có intel-hd-graphics",
        "created_time": "2018-10-03T04:16:11Z",
        "intent_label": "",
        "intent_type": 0,
        "entities": []
    }
]

Request

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

Parameters

ParameterRequiredDescription
n/an/an/a

Response

Returns a list of available samples.

Create

Creates new sample.

Example request

curl -X POST \
  https://v3-api.fpt.ai/api/v3/sample \
  -d '{
        "content": "Do you have fresh checken eggs?"
      }'

Example response

{
    "code": "inde8872kkv40g6jga8eyszfm0dz47vz",
    "app_code": "ryca8xy0bza17j0f2xiv00ljg8j8gscs",
    "content": "Do you have fresh checken eggs?",
    "created_time": "2018-01-11T16:00:44.025515Z"
}

HTTP Request

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

Parameters

ParameterRequiredDescription
contentyescontent of the sample

Response

Returns a JSON object represents the created sample.

Get

Gets an sample with the given sample code.

Example request

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

Example response

{
    "code": "2fcli497oqfbrvte2nevm5ft962y5svp",
    "app_code": "0xtqlndqkmuht0z1xcgzg0eyplz1jztk",
    "content": "Sample text 1",
    "created_time": "2017-10-24T13:47:17Z",
    "intent": {
        "intent_sample_code": "il6pc9dvz1t8px2weebep60ygczav4b2",
        "intent_code": "7sdsWZJDQp",
        "sample_code": "2fcli497oqfbrvte2nevm5ft962y5svp",
        "intent_label": "intent_label"
    },
    "entities": [
        {
            "entity_sample_code": "7apu89e0co3hmcjai036yh695xqhsktv",
            "entity_code": "vfxpyqk5v9rn49zfcxf74hdra9h6zqx8",
            "sample_code": "2fcli497oqfbrvte2nevm5ft962y5svp",
            "parent_code": "",
            "value": "SomeValue",
            "start": 2,
            "end": 5,
            "created_time": "",
            "label": "sample_label_1",
            "Type": 1
        },
        {
            "entity_sample_code": "gudgybpeqxjokerfmrd96jxbjx5ngeae",
            "entity_code": "vfxpyqk5v9rn49zfcxf74hdra9h6zqx8",
            "sample_code": "2fcli497oqfbrvte2nevm5ft962y5svp",
            "parent_code": "",
            "value": "SomeValue",
            "start": 2,
            "end": 5,
            "created_time": "",
            "label": "sample_label_1",
            "Type": 1
        }
    ]
}

Request

GET https://v3-api.fpt.ai/api/v3/sample/:sample_code

Parameters

ParameterRequiredDescription
sample_codeyescode of the sample

Response

Returns a JSON object that represents the sample.

Delete

Deletes an sample specified by its code.

Example request

curl -X DELETE \
  https://v3-api.fpt.ai/api/v3/sample/2fcli497oqfbrvte2nevm5ft962y5svp \
  -H 'Authorization: Bearer your_application_token'

Example response

{
  "message": "Deleted"
}

Request

DEL https://v3-api.fpt.ai/api/v3/sample/:sample_code

Parameters

ParameterRequiredDescription
sample_codeyescode of the sample

Response

Returns HTTP Status 200 if the request succeed.

Update

Updates an sample with the given parameters.

Example request

curl -X PUT \
  https://v3-api.fpt.ai/api/v3/sample/2fcli497oqfbrvte2nevm5ft962y5svp \
  -H 'Authorization: Bearer your_application_token' \
  -d '{
    "content": "Sample text content updated"
}'

Example response

{
    "code": "2fcli497oqfbrvte2nevm5ft962y5svp",
    "app_code": "0xtqlndqkmuht0z1xcgzg0eyplz1jztk",
    "content": "Sample text content updated",
    "created_time": "2017-10-24T13:38:59Z"
}

Request

PUT https://v3-api.fpt.ai/api/v3/sample/:sample_code

Query Parameters

ParameterRequiredDescription
sample_codeyescode of the sample
contentyescontent of the sample

Response

Returns a JSON object that represents the updated sample.

Intent-Sample mapping - Create

Maps an intent with a sample.

Example request

curl -X POST \
  https://v3-api.fpt.ai/api/v3/intent-sample \
  -d '{
  "intent_code": "slyv8l0it363mh9kl922j2z8uvy9o4i1",
  "sample_code": "8hal2kmfr9nj0ys323pxzjbcdxmaalra"
}'

Example response

{
    "intent_sample_code": "5g69998jk1ye6o8n6k0bbhc6s9is6g5m",
    "intent_code": "slyv8l0it363mh9kl922j2z8uvy9o4i1",
    "sample_code": "8hal2kmfr9nj0ys323pxzjbcdxmaalra",
    "intent_label": "",
    "intent_type": 0,
    "intent_description": ""
}

HTTP Request

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

Parameters

ParameterRequiredDescription
intent_codeyescode of the intent
sample_codeyescode of the sample

Response

Returns a JSON object represents the created intent-sample mapping.

Intent-Sample mapping - Delete

Unmap an intent from a sample by intent_sample_code.

Example request

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

Example response

{
    "message": "Deleted"
}

Request

DEL https://v3-api.fpt.ai/api/v3/intent-sample/:intent_sample_code

Parameters

ParameterRequiredDescription
intent_sample_codeyescode of the map between intent and sample

Response

Returns a JSON object represents the result of deleting intent-sample mapping.

Intent-Sample mapping - Import

Create multiple intent-sample mappings.

Example request

curl -X POST \
  https://v3-api.fpt.ai/api/v3/intent-sample/import_intent_samples \
  -d '[ 
          {
              "intent": "intent_1",
              "sample": "sample text 1"
          },
          {
              "intent": "intent_2",
              "sample": "sample text 2"
          }
      ]'

Example response

{
    "number_of_duplicate_sample": 0,
    "number_of_empty_intent": 0,
    "number_of_imported_intent": 2,
    "number_of_imported_sample": 2,
    "number_of_invalid_intent": 0
}

HTTP Request

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

Parameters

ParameterRequiredDescription
contentyeslist of intent-sample mappings (JSON format)

Response

Returns a JSON object represents the created intent-sample mapping.

Entity-Sample mapping - Create

Maps an entity with a sample via tagging words and start/end position of that tagging words in the sample.

Example request

curl -X POST \
  https://v3-api.fpt.ai/api/v3/entity-sample \
  -d '{
  "entity_code":"we2y0ceca052thxtf7jq29kk2610vjgl",
  "sample_code":"8hal2kmfr9nj0ys323pxzjbcdxmaalra",
  "value":"SomeValue",
  "start":2,
  "end":5
}'

Example response

{
    "entity_sample_code": "rlrpyxl68d2gufk441na152zyby6l4ww",
    "entity_code": "we2y0ceca052thxtf7jq29kk2610vjgl",
    "sample_code": "8hal2kmfr9nj0ys323pxzjbcdxmaalra",
    "parent_code": "",
    "value": "SomeValue",
    "start": 2,
    "end": 5,
    "created_time": "2018-10-08T03:29:02Z",
    "label": "",
    "Type": 0
}

HTTP Request

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

Parameters

ParameterRequiredDescription
entity_codeyescode of the entity
sample_codeyescode of the sample
valueyestagging words
startyesstar position of tagging words in the sample
endyesend position of tagging words in the sample

Response

Returns a JSON object represents the created entity-sample mapping.

Entity-Sample mapping - Delete

Unmap an entity from a sample by entity_sample_code.

Example request

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

Example response

{
    "message": "Deleted"
}

Request

DEL https://v3-api.fpt.ai/api/v3/entity-sample/:entity_sample_code

Parameters

ParameterRequiredDescription
entity_sample_codeyescode of the map between entity and sample

Response

Returns a JSON object represents the result of deleting entity-sample mapping.

← Thực thểĐào tạo →
  • List
    • Request
    • Response
  • Create
    • HTTP Request
    • Response
  • Get
    • Request
    • Response
  • Delete
    • Request
    • Response
  • Update
    • Request
    • Query Parameters
    • Response
  • Intent-Sample mapping - Create
    • HTTP Request
    • Response
  • Intent-Sample mapping - Delete
    • Request
    • Response
  • Intent-Sample mapping - Import
    • HTTP Request
    • Response
  • Entity-Sample mapping - Create
    • HTTP Request
    • Response
  • Entity-Sample mapping - Delete
    • Request
    • Response
Conversation
DocumentationAPI ReferenceTutorials (Video)
Reader
DocumentationAPI ReferenceTutorials
Speech
DocumentationAPI ReferenceTutorials
Copyright © 2025 FPT Corporation