For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI アシスタント

新しい AI アシスタントの作成

POST /api/v1/chatbots/

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

name

string

はい

Chatbot name. In Agent mode it carries semantic meaning; in other modes it only distinguishes chatbots.

largeLanguageModel

string (uuid)

はい

チャットボットが回答の生成に使用する大規模言語モデルです(組織が独自に作成した AI Gateway モデルを含みます)。作成時に省略できるのは、組織が AI アシスタントのデフォルト設定でデフォルトモデルを指定している場合のみです。

condenseQuestionLlm

string (uuid)

いいえ

質問書き換えモデルです。RAG 応答モードで検索する前に、追加の質問を独立した質問に書き換えます。null はシステム設定に従うことを示します(選択済みのモデルが後から組織によってブロックまたは無効化された場合も、読み取り時に null を返し、システム設定に従います)。

embeddingModel

string (uuid)

いいえ

テキストのベクトル化に使用する埋め込みモデルです。省略可能です。

rerankerModel

string (uuid)

いいえ

再ランキングに使用するモデルです。省略可能です。

instructions

string

いいえ

Role instructions describing the chatbot's role and behavior.

knowledgeBases

array[IdName]

いいえ

チャットボットがアクセスできるナレッジベースの一覧です。

databases

array[IdName]

いいえ

チャットボットがアクセスできる SQL データベースの一覧です(Text-to-SQL 機能用)。

organization

string (uuid)

いいえ

チャットボットが所属する組織です。空の場合は個人用チャットボットになります。

replyMode

object

いいえ

応答モードです。通常の応答またはストリーミング応答を指定します。 normal: Normal ; template: Template ; hybrid: Hybrid ; agent: Agent;

template

string

いいえ

Template used by Template and Hybrid modes.

unanswerableTemplate

string

いいえ

Template used by Template and Hybrid modes when the question cannot be answered.

totalWordsCount

integer (int64)

いいえ

Accumulated total word count used.

outputMode

object

いいえ

出力モードです。テキストまたは構造化出力を指定します。未指定の場合、空でない rawOutputFormat を含むリクエストは構造化出力として扱い、それ以外は既存の値を維持します(新規作成時はテキスト)。 text: Text ; json_schema: JSON Schema;

rawOutputFormat

object

いいえ

カスタム出力形式の JSON スキーマ定義です。

groups

array[IdName]

いいえ

チャットボットがアクセスできるグループの一覧です。

tools

array[ToolSummary]

いいえ

チャットボットが使用できるツールの一覧です。

skills

array[SkillSummary]

いいえ

チャットボットに関連付けられたスキルの一覧です。

connectors

array[IdName]

いいえ

Connectors associated with this chatbot, gating per-contact OAuth authorization

agentMode

object

いいえ

エージェントモードです。通常、SQL、またはワークフローモードを指定します。 normal: Normal ; canvas: Canvas ; team: Team;

numberOfRetrievedChunks

integer

いいえ

取得する参照チャンク数です。デフォルトは 12、最小値は 1 です。

defaultLabelRelations

object

いいえ

アシスタント単位のデフォルトのナレッジベースラベルフィルタです。形式は query_metadata.label_relations と同じで、null はフィルタなしを示します。呼び出し元が query_metadata を指定していない場合にのみ、優先度が最も低いフォールバックとして適用されます。

useFullRetrievalRange

boolean

いいえ

有効にすると、LLM の top_k による切り詰めを無視し、再ランキング結果をすべて返します。

enableEvaluation

boolean

いいえ

enableInlineCitations

boolean

いいえ

Enables inline citations, inserting citation markers such as [1][2] into responses.

enableCodeInterpreter

boolean

いいえ

When enabled, provides the Code Interpreter tool to run code in an isolated container.

enableBrowserTool

boolean

いいえ

Enable browser automation tool for web tasks

browserToolMaxSteps

integer

いいえ

このアシスタントの 1 回の返信で実行できるブラウザー操作の最大回数(1〜100)。null の場合は default_browser_tool_max_steps に従います。更新時に省略すると、保存済みの値が維持されます。

enableCloudDesktop

boolean

いいえ

テストチャットで、アシスタントが computer ツールを使ってクラウドデスクトップを操作できるようにします。サイト全体のクラウドデスクトップの対象範囲にこの組織が含まれている場合にのみ利用できます。

cloudDesktopAllowedDomains

array[string]

いいえ

クラウドデスクトップがアクセスできるドメイン。1 項目につき 1 つ指定します。空の場合は制限なしです(S19)

enableImageSearch

boolean

いいえ

Provide the image_search tool when any attached knowledge base uses a multimodal embedding model. Disable to remove the tool entirely.

enableClaudeStreamRetry

boolean

いいえ

When a Claude streaming call stalls (first-chunk or mid-stream), abort and re-issue the call once in non-streaming mode. Mid-stream retries send a reset signal so the client discards any partial outpu...

enableStreamStallRetry

boolean

いいえ

When an OpenAI, Azure, OpenAI-compatible or Vertex streaming call stalls (no first token, or a silence between tokens), abort it and re-issue the call once in non-streaming mode. Bedrock calls follow ...

customMaxLlmOutputTokens

integer

いいえ

LLM の最大出力トークン数を指定します。最小値は 512 です。

voiceConfig

object

いいえ

voiceConfig.enabled

boolean

いいえ

Whether this chatbot can be used as a voice agent. Checked by every conversation platform (WebChat, SIP phone, admin/marketplace voice test) instead of a per-platform toggle.

voiceConfig.voiceAgentType

string (uuid)

いいえ

Voice agent mode type.

voiceConfig.sttProvider

string (uuid)

いいえ

Speech-to-Text service provider.

voiceConfig.sttConfig

object

いいえ

STT configuration parameters (JSON).

voiceConfig.ttsProvider

string (uuid)

いいえ

Text-to-Speech service provider.

voiceConfig.ttsConfig

object

いいえ

TTS configuration parameters (JSON).

voiceConfig.realtimeProvider

string (uuid)

いいえ

Realtime end-to-end voice model provider.

voiceConfig.realtimeConfig

object

いいえ

Realtime configuration parameters (JSON).

voiceConfig.realtimeInstructions

string

いいえ

Prompt dedicated to the realtime voice session; falls back to chatbot instructions when empty

voiceConfig.turnHandling

object

いいえ

Turn-taking and interruption settings for the voice agent.

voiceConfig.enableVoiceReply

boolean

いいえ

When disabled, the voice agent replies in text only and does not speak

thinkingConfig

object

いいえ

思考レベルです。null(モデルのデフォルト)または次の形式で指定します。 {"reasoning_effort": "off

enableToolSearching

boolean

いいえ

旧フィールドです。代わりに tool_loading_mode を使用してください。true の書き込みは tool_loading_mode=search、false は all と同等です。両方を指定した場合は tool_loading_mode が優先されます。読み取り時は、ツールの読み込み方式が全件読み込み以外かどうかを返します。

toolLoadingMode

object

いいえ

ツールの読み込み方式です。auto(そのターンで利用可能なツール数とモデルに応じて自動決定)、all(すべて読み込み)、search(動的検索)を指定します。新規アシスタントのデフォルトは auto です。未設定の既存アシスタントでは、旧スイッチから換算した値を返します(オン→search、オフ→all)。 auto: Auto ; all: Load all ; search: Dynamic search;

maxAgentIterations

integer

いいえ

Maximum number of iterations for AgentWorkflow (1-100, default: 20)

agentTimeoutSeconds

integer

いいえ

Timeout in seconds for AgentWorkflow execution (30-1200, default: 600)

agentTimeoutMessage

string

いいえ

Custom user-facing message shown when AgentWorkflow times out (max 500 chars). Leave empty to use the system default.

requireTextWithFlexCards

boolean

いいえ

When enabled, a turn that would end with only Flex Message cards and no text for the user is re-issued to the LLM once, asking it to write the text first and then send the card. Each retry incurs a se...

enableSizeBasedToolResultTruncation

boolean

いいえ

When enabled, tool results exceeding the character threshold are kept as head+tail (with the identifiers found in the cut part) when written to conversation history; knowledge base, SQL and conversati...

toolResultMaxChars

integer

いいえ

Character threshold for size-based tool result truncation (500-50000). Only effective when enable_size_based_tool_result_truncation is True.

enableMemberMemoryWrite

boolean

いいえ

When enabled, what organization members say about themselves in this agent's conversations is saved to their personal AI memory, which every agent with Use Member Memory enabled can refer to. Keep it ...

enableMemberMemoryInjection

boolean

いいえ

When enabled, organization members' personal AI memory is given to this agent as background. When disabled, the agent answers members without it, as it answers customers. MaiGPT has it on.

enableVectorMemory

boolean

いいえ

When enabled, archived messages are vectorized and processed by fact extraction for semantic retrieval (existing behavior). When disabled, archived messages are discarded and only the active chat hist...

longTermMemoryTopK

integer

いいえ

長期記憶の検索ごとに取得する記憶ノード数です(ベクトル検索の similarity_top_k)。デフォルトは 10、範囲は 1–50 です。

enableCrossConversationSearch

boolean

いいえ

When enabled, the conversation history tools also reach this contact's other conversations in the same inbox, within the lookback window. When disabled, they only reach the current conversation.

crossConversationLookbackDays

integer

いいえ

How far back cross-conversation search may reach, measured from each conversation's last message (1-365 days). Leave empty to fall back to 90 days. Only effective when enable_cross_conversation_search...

useGatewayFallback

boolean

いいえ

When enabled, use the fallback group instead of the single LLM

gatewayFallbackGroup

string (uuid)

いいえ

enableSearchMessagesTool

boolean

いいえ

Allow the AI to search past messages in the current conversation.

enableGetMessageContextTool

boolean

いいえ

Allow the AI to retrieve messages surrounding a specific message for context.

enableReadAttachmentFullTextTool

boolean

いいえ

Allow the AI to read the full text of plain-text attachments. AGENT mode only.

enableParseAttachmentContentTool

boolean

いいえ

Allow the AI to parse PDF, Office, audio, and other attachments. AGENT mode only.

enableListAvailableParsersTool

boolean

いいえ

Allow the AI to list available parsers and their capabilities. AGENT mode only.

enableGetDownloadLinkTool

boolean

いいえ

Allow the AI to generate shareable download links for produced content. AGENT mode only.

webChatIsActive

boolean

いいえ

Optional, create only. Whether the web widget channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignor...

apiIsActive

boolean

いいえ

Optional, create only. Whether the API channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignored on u...

fileWorkspaceMode

object

いいえ

File workspace mode in Work internal conversations: none, bound or user_mount. none: None ; bound: Bound workspace ; user_mount: User mount;

fileWorkspaceFolder

string (uuid)

いいえ

The bound workspace (folder id); required when the mode is bound, cleared otherwise.

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス

ステータスコード: 201

レスポンススキーマの例

レスポンス値の例


Embedding Model の一覧を取得

GET /api/v1/embedding-models/

コード例

レスポンス内容

ステータスコード: 200

レスポンス構造の例

レスポンスの値の例


Reranker Model の一覧を取得

GET /api/v1/reranker-models/

コード例

レスポンス内容

ステータスコード: 200

レスポンス構造の例

レスポンスの値の例


大規模言語モデルの一覧

GET /api/v1/large-language-models/

コード例

レスポンス

ステータスコード: 200

レスポンス構造の例

レスポンスの例


AI アシスタント一覧の取得

GET /api/v1/chatbots/

パラメータ

パラメータ名
必須
型
説明

createdByMember

❌

string

作成者による絞り込み:この組織のメンバー id(メンバー名簿が返す id。無効化されたメンバーを含みます)。そのメンバーが作成した AI アシスタントのみを返します。

largeLanguageModel

❌

string

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

pagination

❌

string

ページネーションを行うかどうか (true/false)

query

❌

string

replyMode

❌

string

source

❌

string

`self_built`: self_built ; `built_in`: built_in ; `all`: all;

コード例

レスポンス内容

ステータスコード: 200

レスポンス構造の例

レスポンスのサンプル値


特定の AI アシスタントの取得

GET /api/v1/chatbots/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

コード例

レスポンス内容

ステータスコード: 200

レスポンス構造の例

レスポンス値の例


AI アシスタントの更新

PUT /api/v1/chatbots/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

name

string

はい

Chatbot name. In Agent mode it carries semantic meaning; in other modes it only distinguishes chatbots.

largeLanguageModel

string (uuid)

はい

チャットボットが回答の生成に使用する大規模言語モデルです(組織が独自に構築した AI Gateway モデルを含む)。作成時は、組織が AI アシスタントのデフォルト設定でデフォルトモデルを設定している場合に限り省略できます。

condenseQuestionLlm

string (uuid)

いいえ

質問書き換えモデルです。RAG 応答モードで、検索の前にフォローアップの質問を独立した質問に書き換えます。null はシステム設定に従うことを示します(選択済みのモデルがその後組織によってブロックまたは無効化された場合も、null として読み取られ、システム設定に従います)。

embeddingModel

string (uuid)

いいえ

テキストのベクトル化に使用する埋め込みモデルです。省略可能です。

rerankerModel

string (uuid)

いいえ

再ランキングに使用するモデルです。省略可能です。

instructions

string

いいえ

Role instructions describing the chatbot's role and behavior.

knowledgeBases

array[IdName]

いいえ

チャットボットがアクセスできるナレッジベースの一覧です

databases

array[IdName]

いいえ

チャットボットがアクセスできる SQL データベースの一覧です(Text to SQL 機能で使用)

organization

string (uuid)

いいえ

チャットボットが属する組織です。空の場合は個人用チャットボットになります

replyMode

object

いいえ

応答モードです。通常の応答またはストリーミング応答を指定します。 normal: Normal ; template: Template ; hybrid: Hybrid ; agent: Agent;

template

string

いいえ

Template used by Template and Hybrid modes.

unanswerableTemplate

string

いいえ

Template used by Template and Hybrid modes when the question cannot be answered.

totalWordsCount

integer (int64)

いいえ

Accumulated total word count used.

outputMode

object

いいえ

出力モードです。テキストまたは構造化出力を指定します。省略した場合、リクエストに空でない rawOutputFormat が含まれていれば構造化出力として扱い、そうでなければ既存の値を維持します(新規作成時はテキスト)。 text: Text ; json_schema: JSON Schema;

rawOutputFormat

object

いいえ

カスタム出力形式の JSON スキーマ定義です

groups

array[IdName]

いいえ

チャットボットがアクセスできるグループの一覧です

tools

array[ToolSummary]

いいえ

チャットボットが使用できるツールの一覧です

skills

array[SkillSummary]

いいえ

チャットボットに関連付けられたスキルの一覧です

connectors

array[IdName]

いいえ

Connectors associated with this chatbot, gating per-contact OAuth authorization

agentMode

object

いいえ

エージェントモードです。通常、SQL、またはワークフローモードを指定します。 normal: Normal ; canvas: Canvas ; team: Team;

numberOfRetrievedChunks

integer

いいえ

取得する参照データの件数です。デフォルトは 12、最小値は 1 です

defaultLabelRelations

object

いいえ

アシスタントレベルのデフォルトのナレッジベースラベルフィルター条件です。形式は query_metadata.label_relations と同じで、null はフィルタリングしないことを示します。呼び出し側が query_metadata を指定しなかった場合にのみ、最も優先度の低いフォールバックとして適用されます。

useFullRetrievalRange

boolean

いいえ

有効にすると、LLM の top_k による切り捨てを無視し、reranker の結果をすべて返します

enableEvaluation

boolean

いいえ

enableInlineCitations

boolean

いいえ

Enables inline citations, inserting citation markers such as [1][2] into responses.

enableCodeInterpreter

boolean

いいえ

When enabled, provides the Code Interpreter tool to run code in an isolated container.

enableBrowserTool

boolean

いいえ

Enable browser automation tool for web tasks

browserToolMaxSteps

integer

いいえ

Most browser actions one reply of this assistant may take (1-100); null follows default_browser_tool_max_steps. Leaving it out of an update keeps the stored value.

enableCloudDesktop

boolean

いいえ

Let the assistant operate a cloud desktop with the computer tool in its test chat. It is offered only when the site-wide cloud desktop scope includes this organization.

cloudDesktopAllowedDomains

array[string]

いいえ

Domains the cloud desktop may reach, one per item; empty means no restriction (S19)

enableImageSearch

boolean

いいえ

Provide the image_search tool when any attached knowledge base uses a multimodal embedding model. Disable to remove the tool entirely.

enableClaudeStreamRetry

boolean

いいえ

When a Claude streaming call stalls (first-chunk or mid-stream), abort and re-issue the call once in non-streaming mode. Mid-stream retries send a reset signal so the client discards any partial outpu...

enableStreamStallRetry

boolean

いいえ

When an OpenAI, Azure, OpenAI-compatible or Vertex streaming call stalls (no first token, or a silence between tokens), abort it and re-issue the call once in non-streaming mode. Bedrock calls follow ...

customMaxLlmOutputTokens

integer

いいえ

LLM の出力トークン数の上限をカスタム指定します。最小値は 512 です

voiceConfig

object

いいえ

voiceConfig.enabled

boolean

いいえ

Whether this chatbot can be used as a voice agent. Checked by every conversation platform (WebChat, SIP phone, admin/marketplace voice test) instead of a per-platform toggle.

voiceConfig.voiceAgentType

string (uuid)

いいえ

Voice agent mode type.

voiceConfig.sttProvider

string (uuid)

いいえ

Speech-to-Text service provider.

voiceConfig.sttConfig

object

いいえ

STT configuration parameters (JSON).

voiceConfig.ttsProvider

string (uuid)

いいえ

Text-to-Speech service provider.

voiceConfig.ttsConfig

object

いいえ

TTS configuration parameters (JSON).

voiceConfig.realtimeProvider

string (uuid)

いいえ

Realtime end-to-end voice model provider.

voiceConfig.realtimeConfig

object

いいえ

Realtime configuration parameters (JSON).

voiceConfig.realtimeInstructions

string

いいえ

Prompt dedicated to the realtime voice session; falls back to chatbot instructions when empty

voiceConfig.turnHandling

object

いいえ

Turn-taking and interruption settings for the voice agent.

voiceConfig.enableVoiceReply

boolean

いいえ

When disabled, the voice agent replies in text only and does not speak

thinkingConfig

object

いいえ

思考レベルです。null(モデルのデフォルト)または {"reasoning_effort": "off

enableToolSearching

boolean

いいえ

旧フィールドです。代わりに tool_loading_mode を使用してください。true の書き込みは tool_loading_mode=search、false は all と同等です。両方を指定した場合は tool_loading_mode が優先されます。読み取り時は、ツールの読み込み方式が全件読み込み以外かどうかを返します。

toolLoadingMode

object

いいえ

ツールの読み込み方式です。auto(自動。そのターンで利用可能なツールの数とモデルに応じて決定)、all(すべて読み込み)、search(動的検索)。新規作成のアシスタントはデフォルトで auto です。まだ設定されていない既存のアシスタントでは、旧スイッチから換算した値(オン→search、オフ→all)を返します。 auto: Auto ; all: Load all ; search: Dynamic search;

maxAgentIterations

integer

いいえ

Maximum number of iterations for AgentWorkflow (1-100, default: 20)

agentTimeoutSeconds

integer

いいえ

Timeout in seconds for AgentWorkflow execution (30-1200, default: 600)

agentTimeoutMessage

string

いいえ

Custom user-facing message shown when AgentWorkflow times out (max 500 chars). Leave empty to use the system default.

requireTextWithFlexCards

boolean

いいえ

When enabled, a turn that would end with only Flex Message cards and no text for the user is re-issued to the LLM once, asking it to write the text first and then send the card. Each retry incurs a se...

enableSizeBasedToolResultTruncation

boolean

いいえ

When enabled, tool results exceeding the character threshold are kept as head+tail (with the identifiers found in the cut part) when written to conversation history; knowledge base, SQL and conversati...

toolResultMaxChars

integer

いいえ

Character threshold for size-based tool result truncation (500-50000). Only effective when enable_size_based_tool_result_truncation is True.

enableMemberMemoryWrite

boolean

いいえ

When enabled, what organization members say about themselves in this agent's conversations is saved to their personal AI memory, which every agent with Use Member Memory enabled can refer to. Keep it ...

enableMemberMemoryInjection

boolean

いいえ

When enabled, organization members' personal AI memory is given to this agent as background. When disabled, the agent answers members without it, as it answers customers. MaiGPT has it on.

enableVectorMemory

boolean

いいえ

When enabled, archived messages are vectorized and processed by fact extraction for semantic retrieval (existing behavior). When disabled, archived messages are discarded and only the active chat hist...

longTermMemoryTopK

integer

いいえ

長期記憶の検索ごとに取得するメモリノード数です(ベクトル検索の similarity_top_k)。デフォルトは 10、範囲は 1~50 です

enableCrossConversationSearch

boolean

いいえ

When enabled, the conversation history tools also reach this contact's other conversations in the same inbox, within the lookback window. When disabled, they only reach the current conversation.

crossConversationLookbackDays

integer

いいえ

How far back cross-conversation search may reach, measured from each conversation's last message (1-365 days). Leave empty to fall back to 90 days. Only effective when enable_cross_conversation_search...

useGatewayFallback

boolean

いいえ

When enabled, use the fallback group instead of the single LLM

gatewayFallbackGroup

string (uuid)

いいえ

enableSearchMessagesTool

boolean

いいえ

Allow the AI to search past messages in the current conversation.

enableGetMessageContextTool

boolean

いいえ

Allow the AI to retrieve messages surrounding a specific message for context.

enableReadAttachmentFullTextTool

boolean

いいえ

Allow the AI to read the full text of plain-text attachments. AGENT mode only.

enableParseAttachmentContentTool

boolean

いいえ

Allow the AI to parse PDF, Office, audio, and other attachments. AGENT mode only.

enableListAvailableParsersTool

boolean

いいえ

Allow the AI to list available parsers and their capabilities. AGENT mode only.

enableGetDownloadLinkTool

boolean

いいえ

Allow the AI to generate shareable download links for produced content. AGENT mode only.

webChatIsActive

boolean

いいえ

Optional, create only. Whether the web widget channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignor...

apiIsActive

boolean

いいえ

Optional, create only. Whether the API channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignored on u...

fileWorkspaceMode

object

いいえ

File workspace mode in Work internal conversations: none, bound or user_mount. none: None ; bound: Bound workspace ; user_mount: User mount;

fileWorkspaceFolder

string (uuid)

いいえ

The bound workspace (folder id); required when the mode is bound, cleared otherwise.

リクエストスキーマの例

リクエスト値の例

コード例

レスポンスボディ

ステータスコード: 200

レスポンス構造の例

レスポンス値の例


AI アシスタントの部分更新

PATCH /api/v1/chatbots/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

リクエストボディ

リクエストパラメータ

フィールド
型
必須
説明

name

string

いいえ

Chatbot name. In Agent mode it carries semantic meaning; in other modes it only distinguishes chatbots.

largeLanguageModel

string (uuid)

いいえ

チャットボットが回答の生成に使用する大規模言語モデルです(組織が独自に作成した AI Gateway モデルを含みます)。作成時に省略できるのは、組織が AI アシスタントのデフォルト設定でデフォルトモデルを指定している場合のみです

condenseQuestionLlm

string (uuid)

いいえ

質問書き換えモデルです。RAG 応答モードで検索する前に、追加の質問を独立した質問に書き換えます。null はシステム設定に従うことを示します(選択済みのモデルが後から組織によってブロックまたは無効化された場合も、読み取り時に null を返し、システム設定に従います)。

embeddingModel

string (uuid)

いいえ

テキストのベクトル化に使用する埋め込みモデルです。省略可能です。

rerankerModel

string (uuid)

いいえ

再ランキングに使用するモデルです。省略可能です。

instructions

string

いいえ

Role instructions describing the chatbot's role and behavior.

knowledgeBases

array[IdName]

いいえ

チャットボットがアクセスできるナレッジベースの一覧です。

databases

array[IdName]

いいえ

チャットボットがアクセスできる SQL データベースの一覧です(Text-to-SQL 機能用)。

organization

string (uuid)

いいえ

チャットボットが所属する組織です。空の場合は個人用チャットボットになります。

replyMode

object

いいえ

応答モードです。通常の応答またはストリーミング応答を指定します。 normal: Normal ; template: Template ; hybrid: Hybrid ; agent: Agent;

template

string

いいえ

Template used by Template and Hybrid modes.

unanswerableTemplate

string

いいえ

Template used by Template and Hybrid modes when the question cannot be answered.

totalWordsCount

integer (int64)

いいえ

Accumulated total word count used.

outputMode

object

いいえ

出力モードです。テキストまたは構造化出力を指定します。指定しない場合、リクエストに空でない rawOutputFormat が含まれていれば構造化出力として扱い、そうでなければ既存の値を維持します(新規作成時はテキスト)。 text: Text ; json_schema: JSON Schema;

rawOutputFormat

object

いいえ

カスタム出力形式の JSON スキーマ定義です。

groups

array[IdName]

いいえ

チャットボットがアクセスできるグループの一覧です。

tools

array[ToolSummary]

いいえ

チャットボットが使用できるツールの一覧です。

skills

array[SkillSummary]

いいえ

チャットボットに関連付けられたスキルの一覧です。

connectors

array[IdName]

いいえ

Connectors associated with this chatbot, gating per-contact OAuth authorization

agentMode

object

いいえ

エージェントモードです。通常、SQL、またはワークフローモードを指定します。 normal: Normal ; canvas: Canvas ; team: Team;

numberOfRetrievedChunks

integer

いいえ

取得する参照チャンク数です。デフォルトは 12、最小値は 1 です。

defaultLabelRelations

object

いいえ

アシスタント単位のデフォルトのナレッジベースラベルフィルタです。形式は query_metadata.label_relations と同じで、null はフィルタなしを示します。呼び出し元が query_metadata を指定していない場合にのみ、優先度が最も低いフォールバックとして適用されます。

useFullRetrievalRange

boolean

いいえ

有効にすると、LLM の top_k による切り詰めを無視し、再ランキング結果をすべて返します。

enableEvaluation

boolean

いいえ

enableInlineCitations

boolean

いいえ

Enables inline citations, inserting citation markers such as [1][2] into responses.

enableCodeInterpreter

boolean

いいえ

When enabled, provides the Code Interpreter tool to run code in an isolated container.

enableBrowserTool

boolean

いいえ

Enable browser automation tool for web tasks

browserToolMaxSteps

integer

いいえ

Most browser actions one reply of this assistant may take (1-100); null follows default_browser_tool_max_steps. Leaving it out of an update keeps the stored value.

enableCloudDesktop

boolean

いいえ

Let the assistant operate a cloud desktop with the computer tool in its test chat. It is offered only when the site-wide cloud desktop scope includes this organization.

cloudDesktopAllowedDomains

array[string]

いいえ

Domains the cloud desktop may reach, one per item; empty means no restriction (S19)

enableImageSearch

boolean

いいえ

Provide the image_search tool when any attached knowledge base uses a multimodal embedding model. Disable to remove the tool entirely.

enableClaudeStreamRetry

boolean

いいえ

When a Claude streaming call stalls (first-chunk or mid-stream), abort and re-issue the call once in non-streaming mode. Mid-stream retries send a reset signal so the client discards any partial outpu...

enableStreamStallRetry

boolean

いいえ

OpenAI、Azure、OpenAI 互換、または Vertex のストリーミング呼び出しが停止した場合(最初のトークンが届かない、またはトークン間で無音状態が続く場合)、その呼び出しを中断し、非ストリーミングモードで 1 回だけ再実行します。Bedrock の呼び出しは ...

customMaxLlmOutputTokens

integer

いいえ

LLM の最大出力トークン数を指定します。最小値は 512 です。

voiceConfig

object

いいえ

voiceConfig.enabled

boolean

いいえ

Whether this chatbot can be used as a voice agent. Checked by every conversation platform (WebChat, SIP phone, admin/marketplace voice test) instead of a per-platform toggle.

voiceConfig.voiceAgentType

string (uuid)

いいえ

Voice agent mode type.

voiceConfig.sttProvider

string (uuid)

いいえ

Speech-to-Text service provider.

voiceConfig.sttConfig

object

いいえ

STT configuration parameters (JSON).

voiceConfig.ttsProvider

string (uuid)

いいえ

Text-to-Speech service provider.

voiceConfig.ttsConfig

object

いいえ

TTS configuration parameters (JSON).

voiceConfig.realtimeProvider

string (uuid)

いいえ

Realtime end-to-end voice model provider.

voiceConfig.realtimeConfig

object

いいえ

Realtime configuration parameters (JSON).

voiceConfig.realtimeInstructions

string

いいえ

Prompt dedicated to the realtime voice session; falls back to chatbot instructions when empty

voiceConfig.turnHandling

object

いいえ

Turn-taking and interruption settings for the voice agent.

voiceConfig.enableVoiceReply

boolean

いいえ

When disabled, the voice agent replies in text only and does not speak

thinkingConfig

object

いいえ

思考レベルです。null(モデルのデフォルト)または次の形式で指定します。 {"reasoning_effort": "off

enableToolSearching

boolean

いいえ

旧フィールドです。代わりに tool_loading_mode を使用してください。true の書き込みは tool_loading_mode=search、false は all と同等です。両方を指定した場合は tool_loading_mode が優先されます。読み取り時は、ツールの読み込み方式が全件読み込み以外かどうかを返します。

toolLoadingMode

object

いいえ

ツールの読み込み方式です。auto(そのターンで利用可能なツール数とモデルに応じて自動決定)、all(すべて読み込み)、search(動的検索)を指定します。新規アシスタントのデフォルトは auto です。未設定の既存アシスタントでは、旧スイッチから換算した値を返します(オン→search、オフ→all)。 auto: Auto ; all: Load all ; search: Dynamic search;

maxAgentIterations

integer

いいえ

Maximum number of iterations for AgentWorkflow (1-100, default: 20)

agentTimeoutSeconds

integer

いいえ

Timeout in seconds for AgentWorkflow execution (30-1200, default: 600)

agentTimeoutMessage

string

いいえ

Custom user-facing message shown when AgentWorkflow times out (max 500 chars). Leave empty to use the system default.

requireTextWithFlexCards

boolean

いいえ

When enabled, a turn that would end with only Flex Message cards and no text for the user is re-issued to the LLM once, asking it to write the text first and then send the card. Each retry incurs a se...

enableSizeBasedToolResultTruncation

boolean

いいえ

When enabled, tool results exceeding the character threshold are kept as head+tail (with the identifiers found in the cut part) when written to conversation history; knowledge base, SQL and conversati...

toolResultMaxChars

integer

いいえ

Character threshold for size-based tool result truncation (500-50000). Only effective when enable_size_based_tool_result_truncation is True.

enableMemberMemoryWrite

boolean

いいえ

When enabled, what organization members say about themselves in this agent's conversations is saved to their personal AI memory, which every agent with Use Member Memory enabled can refer to. Keep it ...

enableMemberMemoryInjection

boolean

いいえ

When enabled, organization members' personal AI memory is given to this agent as background. When disabled, the agent answers members without it, as it answers customers. MaiGPT has it on.

enableVectorMemory

boolean

いいえ

When enabled, archived messages are vectorized and processed by fact extraction for semantic retrieval (existing behavior). When disabled, archived messages are discarded and only the active chat hist...

longTermMemoryTopK

integer

いいえ

長期記憶の検索ごとに取得する記憶ノード数です(ベクトル検索の similarity_top_k)。デフォルトは 10、範囲は 1–50 です。

enableCrossConversationSearch

boolean

いいえ

When enabled, the conversation history tools also reach this contact's other conversations in the same inbox, within the lookback window. When disabled, they only reach the current conversation.

crossConversationLookbackDays

integer

いいえ

How far back cross-conversation search may reach, measured from each conversation's last message (1-365 days). Leave empty to fall back to 90 days. Only effective when enable_cross_conversation_search...

useGatewayFallback

boolean

いいえ

When enabled, use the fallback group instead of the single LLM

gatewayFallbackGroup

string (uuid)

いいえ

enableSearchMessagesTool

boolean

いいえ

Allow the AI to search past messages in the current conversation.

enableGetMessageContextTool

boolean

いいえ

Allow the AI to retrieve messages surrounding a specific message for context.

enableReadAttachmentFullTextTool

boolean

いいえ

Allow the AI to read the full text of plain-text attachments. AGENT mode only.

enableParseAttachmentContentTool

boolean

いいえ

Allow the AI to parse PDF, Office, audio, and other attachments. AGENT mode only.

enableListAvailableParsersTool

boolean

いいえ

Allow the AI to list available parsers and their capabilities. AGENT mode only.

enableGetDownloadLinkTool

boolean

いいえ

Allow the AI to generate shareable download links for produced content. AGENT mode only.

webChatIsActive

boolean

いいえ

Optional, create only. Whether the web widget channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignor...

apiIsActive

boolean

いいえ

Optional, create only. Whether the API channel starts active. Omitted or null: follows the organization's default for new chatbot channels (inactive unless a platform admin turned it on). Ignored on u...

fileWorkspaceMode

object

いいえ

File workspace mode in Work internal conversations: none, bound or user_mount. none: None ; bound: Bound workspace ; user_mount: User mount;

fileWorkspaceFolder

string (uuid)

いいえ

The bound workspace (folder id); required when the mode is bound, cleared otherwise.

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス内容

ステータスコード: 200

レスポンス構造の例

レスポンスの値の例


AI アシスタントの削除

DELETE /api/v1/chatbots/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

コード例

レスポンスボディ

ステータスコード
説明

204

No response body


AIアシスタントを複製

POST /api/v1/chatbots/{id}/duplicate/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

name

string

はい

リクエストスキーマの例

リクエストのサンプル値

コード例

レスポンス内容

ステータスコード: 201

レスポンススキーマの例

レスポンスのサンプル値


評価機能の有効化または無効化

PATCH /api/v1/chatbots/{id}/enable-evaluation/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

リクエストボディ

リクエストパラメータ

フィールド
型
必須
説明

enableEvaluation

boolean

いいえ

リクエストスキーマの例

リクエスト値の例

コード例

レスポンスボディ

ステータスコード: 200

レスポンススキーマの例

レスポンスのサンプル値


組織の Hook 一覧の取得

GET /api/v1/hooks/

Hook は Hook テンプレートから作成されます。トリガーポイントと処理方法はテンプレートによって決まり、作成時に個別に指定することはできません。AI アシスタントにアタッチすると、メッセージの送受信時に実行されます。機能の詳細は、ユーザーマニュアルの Hook メッセージインターセプトをご覧ください。

パラメータ

パラメータ名
必須
型
説明

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

search

❌

string

A search term.

コード例

レスポンス内容

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例


テンプレートからの Hook の作成

POST /api/v1/hooks/

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

templateId

string (uuid)

はい

name

string

はい

description

string

いいえ

config

object

いいえ

blockMessage

string

いいえ

enabled

boolean

いいえ

blockWhenEngineUnavailable

boolean

いいえ

Applies when the hook engine cannot be set up for a message (for example, its sandbox backend cannot be reached). On: the message is blocked with a safety notice, and for a hook that rewrites text the...

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス内容

ステータスコード: 201

レスポンススキーマの例

レスポンス値の例


特定の Hook の取得

GET /api/v1/hooks/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

コード例

レスポンス内容

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例


Hook の部分更新

PATCH /api/v1/hooks/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

name

string

いいえ

description

string

いいえ

config

object

いいえ

blockMessage

string

いいえ

enabled

boolean

いいえ

blockWhenEngineUnavailable

boolean

いいえ

Applies when the hook engine cannot be set up for a message (for example, its sandbox backend cannot be reached). On: the message is blocked with a safety notice, and for a hook that rewrites text the...

リクエストスキーマの例

リクエスト値の例

コード例

レスポンスボディ

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例


Hook の削除

DELETE /api/v1/hooks/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

コード例

レスポンスボディ

ステータスコード
説明

204

No response body


AI アシスタントに接続された Hook の一覧取得

GET /api/v1/chatbots/{chatbotId}/hooks/

パラメータ

パラメータ名
必須
型
説明

chatbotId

✅

string

コード例

レスポンスボディ

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例


AI アシスタントに接続された Hook の一括置換

PUT /api/v1/chatbots/{chatbotId}/hooks/

パラメータ

パラメータ名
必須
型
説明

chatbotId

✅

string

リクエストボディ

リクエストパラメータ

フィールド
型
必須
説明

hookIds

array[string]

はい

リクエストスキーマの例

リクエスト値の例

コード例

レスポンスボディ

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例


スケジュール一覧の取得

GET /api/v1/schedules/

スケジュールは、指定した時刻に AI アシスタントでプロンプトを実行します。作成時に、専用のコンタクトと会話がシステムによって自動的に設定されます。

パラメータ

パラメータ名
必須
型
説明

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

search

❌

string

A search term.

コード例

レスポンス内容

ステータスコード: 200

レスポンススキーマの例

レスポンスの値の例

ステータスコード: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


スケジュールの作成

POST /api/v1/schedules/

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

chatbot

string (uuid)

はい

name

string

はい

executionMode

string (enum: in_context, isolated)

はい

in_context: In Context ; isolated: Isolated;

prompt

string

はい

contextVariables

object

いいえ

inbox

string (uuid)

はい

saveResultToContext

boolean

いいえ

deliveryConversationIds

array[string]

いいえ

deliveryWebhookUrls

array[string]

いいえ

deliveryCondition

string

いいえ

When set, each run delivers only if the agent judges this condition met; blank delivers every run.

scheduleType

string (enum: cron, interval, one_shot)

はい

cron: Cron ; interval: Interval ; one_shot: One Shot;

cronExpression

string

いいえ

intervalSeconds

integer

いいえ

oneShotAt

string (timestamp)

いいえ

timezone

string

いいえ

enabled

boolean

いいえ

maxExecutions

integer

いいえ

endDate

string (date)

いいえ

Last day the schedule runs, in its own timezone; the first run due after that day turns it off.

confirmRunAsChange

boolean

いいえ

Send true once the member confirmed that saving makes the schedule run as them. Required when the organization runs schedules as their member and the schedule runs as someone else; also accepted by to...

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス内容

ステータスコード: 201

レスポンススキーマの例

レスポンスの値の例

ステータスコード: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


特定のスケジュールの取得

GET /api/v1/schedules/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

A UUID string identifying this Chatbot Schedule.

コード例

レスポンス内容

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例

ステータスコード: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


スケジュールの部分更新

PATCH /api/v1/schedules/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

A UUID string identifying this Chatbot Schedule.

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

name

string

いいえ

prompt

string

いいえ

contextVariables

object

いいえ

saveResultToContext

boolean

いいえ

deliveryConversationIds

array[string]

いいえ

deliveryWebhookUrls

array[string]

いいえ

deliveryCondition

string

いいえ

When set, each run delivers only if the agent judges this condition met; blank delivers every run.

scheduleType

string (enum: cron, interval, one_shot)

いいえ

cron: Cron ; interval: Interval ; one_shot: One Shot;

cronExpression

string

いいえ

intervalSeconds

integer

いいえ

oneShotAt

string (timestamp)

いいえ

timezone

string

いいえ

enabled

boolean

いいえ

maxExecutions

integer

いいえ

endDate

string (date)

いいえ

Last day the schedule runs, in its own timezone; the first run due after that day turns it off.

webhookEnabled

boolean

いいえ

When on, and Unattended Mode is on site-wide, an external system runs this schedule once per POST to its webhook URL. Turning it off stops the URL at once; turning it on again gives a new URL.

webhookAcceptsExternalText

boolean

いいえ

When on, a webhook call may add up to 4,000 characters after the prompt. That text reaches the model, and the assistant's API, MCP and other tools may write data because of it; turn it on only when th...

confirmRunAsChange

boolean

いいえ

Send true once the member confirmed that saving makes the schedule run as them. Required when the organization runs schedules as their member and the schedule runs as someone else; also accepted by to...

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例

ステータスコード: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


スケジュールを削除します

DELETE /api/v1/schedules/{id}/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

A UUID string identifying this Chatbot Schedule.

コード例

レスポンスボディ

ステータスコード
説明

204

No response body

4XX

Error response; X-Error-Code carries its code (see "Error codes").


スケジュールを今すぐ実行

POST /api/v1/schedules/{id}/run-now/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

A UUID string identifying this Chatbot Schedule.

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

chatbot

string (uuid)

はい

name

string

はい

executionMode

string (enum: in_context, isolated)

はい

in_context: In Context ; isolated: Isolated;

prompt

string

はい

contextVariables

object

いいえ

inbox

string (uuid)

はい

saveResultToContext

boolean

いいえ

deliveryConversationIds

array[string]

いいえ

deliveryWebhookUrls

array[string]

いいえ

deliveryCondition

string

いいえ

When set, each run delivers only if the agent judges this condition met; blank delivers every run.

scheduleType

string (enum: cron, interval, one_shot)

はい

cron: Cron ; interval: Interval ; one_shot: One Shot;

cronExpression

string

いいえ

intervalSeconds

integer

いいえ

oneShotAt

string (timestamp)

いいえ

timezone

string

いいえ

enabled

boolean

いいえ

maxExecutions

integer

いいえ

endDate

string (date)

いいえ

Last day the schedule runs, in its own timezone; the first run due after that day turns it off.

confirmRunAsChange

boolean

いいえ

Send true once the member confirmed that saving makes the schedule run as them. Required when the organization runs schedules as their member and the schedule runs as someone else; also accepted by to...

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス内容

ステータスコード: 202

レスポンススキーマの例

レスポンス値の例

ステータスコード: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


スケジュールの有効化・無効化

POST /api/v1/schedules/{id}/toggle/

パラメータ

パラメータ名
必須
型
説明

id

✅

string

A UUID string identifying this Chatbot Schedule.

リクエスト内容

リクエストパラメータ

フィールド
型
必須
説明

confirmRunAsChange

boolean

いいえ

リクエストスキーマの例

リクエスト値の例

コード例

レスポンス内容

ステータスコード: 200

レスポンススキーマの例

レスポンス値の例

ステータスコード: 400

レスポンススキーマの例

レスポンス値の例


最終更新

役に立ちましたか?