Conversations
Conversation related APIs
会話リストを取得します。会話はデフォルトで最後のチャット時間を基準に降順で並べ替えられています。
認証用のAPIキー
指定された値以降の最後のチャット時間を検索
指定された値以前の最後のチャット時間を検索
指定された値以降の最初のチャット時間を検索
指定された値以前の最初のチャット時間を検索
50falseLAST_CHAT_TIME_DESC任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功
GET /webapi/v2/conversations HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
成功
{
"conversations": [
{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"knowledgeBaseId": "text",
"pageNo": 1,
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {}
}
],
"cursor": "text"
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
フィルタリング対象のユーザーID
フィルタリング対象のllmアプリID
フィルタリング対象のの会話カテゴリID
フィルタリング対象の会話ID
正常に更新されました。
No content
POST /webapi/v2/conversations/bulk_update HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"userIds": [
"text"
],
"llmAppIds": [
"text"
],
"categoryIds": [
"text"
],
"conversationIds": [
"text"
],
"conversationInfo": {
"state": "no",
"assignee": "text",
"categoryIds": [
"text"
],
"title": "text"
}
}正常に更新されました。
No content
指定の会話IDに紐づく会話内容を取得します。 取得できるメッセージは、最新の20件までです。
認証用のAPIキー
Comma separated list of variables to include in the response
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に取得しました。
GET /webapi/v2/conversations/{conversation_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
正常に取得しました。
{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"knowledgeBaseId": "text",
"pageNo": 1,
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
会話の状態
会話の担当者
カテゴリのID
会話のタイトル
正常に設定されました。
PATCH /webapi/v2/conversations/{conversation_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"state": "no",
"assignee": "text",
"categoryIds": [
"text"
],
"title": "text"
}正常に設定されました。
{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"knowledgeBaseId": "text",
"pageNo": 1,
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {}
}会話内のチャットの一覧を取得します。チャットはタイムスタンプによって昇順に並べ替えられています。
チャットページのサイズは100です。
認証用のAPIキー
1任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功
GET /webapi/v2/conversations/{conversation_id}/chats HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
成功
{
"chats": [
{
"id": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"knowledgeBaseId": "text",
"pageNo": 1,
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"pageNo": 1,
"totalCount": 1
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に取得しました。
GET /webapi/v2/conversations/{conversation_id}/running HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
正常に取得しました。
{
"isRunning": true
}進行中の会話を終了する。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に完了しました。
No content
POST /webapi/v2/conversations/{conversation_id}/stop HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
正常に完了しました。
No content
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功
No content
DELETE /webapi/v2/conversations/{conversation_id}/chats/{chat_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
成功
No content
会話のタイトルを設定します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
会話のタイトル。
成功
PUT /webapi/v2/conversations/{conversation_id}/title HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"title": "text"
}成功
{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"knowledgeBaseId": "text",
"pageNo": 1,
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {}
}認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
チャットの評価
フィードバック選択
提案された回答
成功
POST /webapi/v2/conversations/{conversation_id}/chats/{chat_id}/feedback HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"rating": true,
"feedbackSelection": [
"not_relevant"
],
"suggestedAnswer": "text"
}成功
{
"conversationId": "text",
"chatId": "text",
"rating": true
}指定した範囲の1日あたりの会話の総数を取得します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
開始日をYYYY-MM-DD形式で範囲指定
End of range of dates to query in YYYY-MM-DD format.
成功
GET /webapi/conversation_daily_count HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"startDate": "text",
"endDate": "text"
}成功
{
"result": {
"dailyTotalCount": [
{
"date": "text",
"activeCount": 1
}
],
"state": "text",
"campaignCount": 1
},
"errors": {}
}Last updated
Was this helpful?