アプリケーションアシスタントで設定したツールがあり、それらのツールをビッグスピーチモデル(ChatGPTなど)のプラグインとして使用したい場合、次の方法を使用できます。
予備
1 登録/ログイン言語収集AIオンラインアカウント
- 登録/ログインアドレス:https://chat.jijyun.cn
2 アプリケーションアシスタントの作成

3 使用するツールを選択する


Tiburon Cloudが現在サポートしているすべてのアプリケーションは、Tiburon Cloud Application Centre(https://www.jijyun.cn/apps/)で確認できます。
4 アプリケーション認証の設定、フィールド設定
4.1 行動意図の説明
アクションインテントの説明は、このツールが何のためにあるのか、どのように使うのかをAIに伝える。一般的に、AIモデルはこのアクションを使うためにここの説明を参照する。
ヒントチップ::
複数のツールを一緒に使用する場合、複数のツール間のコラボレーション方法を設定することができます。 例えば、"請求書検証 "アプリケーションツールを追加しました。通常、ツールのインターフェースは、ユーザーが請求書のパラメータを渡して、請求書が正しいかどうかを検証する必要がありますが、一部のユーザーは直接請求書のスクリーンショットを送信して検証します。今回は、別のツール「自強雲OCR」で請求書の内容を抽出してから使用する必要があります。
そこで、請求書検証ツールのアクションインテントの説明に、「請求書が本物の請求書であるかどうかをチェックし、文書のURLを受信した場合は、まず「Tibco Cloud OCR」機能を使って文書のテキスト部分を抽出してから実行することができます」を追加しました。

4.2 アプリケーション認証設定
選択したツールが認証を必要とするアプリケーションである場合、まずアカウントの認証を完了してください。ビルトインの "ビジネス照会 "のような認証が不要なアプリケーションの場合、認証を追加する必要はありません。

オーソライズされたアプリケーションを追加する必要がある場合、口座オーソライズを追加する際にオーソライズパラメータを入力する必要があります。これらのパラメータを取得する方法については、認可に関する文書や説明ビデオを含む認可画面でご案内します。

4.3 フィールド設定
フィールド設定セクションの構成

-
- AIオートマッチ:このフィールドの値は、ダイアログの内容に基づいてAIによって自動的に生成されます。
-
- 手動選択:AIの選択は不要、デフォルト値を使用
-
- このフィールドを使用しないでください:一般的にオプションタイプのパラメータで、インターフェイスの実行時には使用されません。
ヒントチップ
各フィールドの下には、フィールド入力の書式がどうなっているかなど、AIにフィールドへの入力方法を知らせるために変更できるヘルプ指示が並んでいる。

5 APIインターフェース呼び出しの認証パラメータの取得
-
- <
- App Assistantの「Integration」セクションをクリックし、「API Interface」インテグレーションを見つけてクリックします。

-
- Add "をクリックしてAPIキーを取得します。このパラメータは、以降の呼び出しでインターフェイスを認証するために使用されます。

オープンAI アシスタント設定方法
OpenAIのアシスタントを使用して、設定したツールをFunctionとして使用するインターフェースを作成することができます:
1 前提条件
-
- Openai API_KEY が取得されました。
-
- AIアカウント登録に成功
-
- ステップ1:APIKeyを取得するために、Language Gathering AIプラットフォーム(https://chat.jijyun.cn/)でAPI統合設定を作成する。
-
- ステップ2:[指定されたアカウントの現在実行可能なアクションのリストを照会する]インターフェイスを呼び出して、スマートツールのリストを取得します。
-
- ステップ3:AIアシスタント・インターフェースを作成するためにopenaiを呼び出す(openaiが提供するSDKを使用することもできます)。https://platform.openai.com/docs/api-reference/assistants/createAssistant
2 デモのサンプルコード:
import requests
import json
openai_key = '替换成你的openai API_KEY'
jijyun_key = '替换成你的语聚AI API集成中的APIKey'
openai_service = "https://api.openai.com"
jijyun_service = "https://chat.jijyun.cn"
def get_jijyun_aitions():
'''获取集简云AI action列表'''
headers = {
'Authorization': f'Basic {jijyun_key}',
}
response = requests.request(
"GET", f"{jijyun_service}/v1/openapi/exposed", headers=headers)
if response.status_code == 200:
return response.json().get('results')
def jijyun_aitions_2_openai_tools(actions):
''''''
tools = []
if not actions:
return tools
for action in actions:
tools.append({
"type": "function",
"function": {
"name": action.get('operation_id'),
"description": action.get('description'),
"parameters": action.get('params'),
}
})
return tools
def createAssistant():
'''创建AI助手'''
actions = get_jijyun_aitions()
tools = jijyun_aitions_2_openai_tools(actions)
payload = json.dumps({
"instructions": "You are a helpful AI assistant.", // 可自定义指导说明
"name": "My First assistant",
"tools": tools,
"model": "gpt-4" //可自定义您的模型,目前集简云应用执行在GPT3.5即可顺畅运行,速度快价格低
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer $OPENAI_API_KEY',
'OpenAI-Beta': 'assistants=v1',
'Authorization': f'Bearer {openai_key}',
}
response = requests.request(
"POST", f"{openai_service}/v1/assistants", headers=headers, data=payload)
print(response.text)
def main():
createAssistant()
if __name__ == "__main__":
main()
pass
OpenAI GPTの設定方法
GPTs は OpenAI AI Intelligent Assistant で、GPTs の機能を作成・共有することができます。GPTsにTibbo Cloudのアプリケーションツールを利用可能なアクションとして設定することで、GPTsにTibbo Cloudの様々なアプリケーションを利用する機能を追加することができます。
1 ビデオ・プレゼンテーション
一時的にこのコンテンツをフライング・ブック・ドキュメント外に表示することができません。
(ビデオ内のAPIキー認証情報は削除されています。設定には実際のAPIキーを使用してください)

2 コンフィギュレーション・ガイダンス・ノート(指示)

ガイダンス・ノートの例
-
- ルール コンテンツの変更が可能
-
- 必須アクションどのようなアプリケーション・アクションを使うかによって、パーツを調整する必要がある。オリジナルの内容を維持することは、修正には推奨されない
-
- 使用方法中には、現在の形式や内容を維持する必要があるものもある。実際に使えるアクションに調整する
例
ルール
- できるだけ中国語で対応すること
IZPカスタムアクションの説明書。
ステップ1.ユーザーに、/list_available_actions/を呼び出してAVAILABLE ACTIONSのリストを作成することで、リクエストの完了に必要なHibernate Cloud AI Actionsがあることを確認していることを伝えます。AVAILABLE ACTIONS.出力から、必要なREQUIRED_ACTIONがAVAILABLE ACTIONS.にあるかどうかを確認します。 続ける ユーザーが必須アクションを設定したことを確認したら、ステップ 2 のままステップ 4 に進みます。 ステップ 3. ユーザーが必須アクションを設定したことを確認したら、ステップ 3 のままステップ 4 に進みます。必須アクションが利用できない場合は、ユーザーに必須アクションの設定リンクを送信します。 Hibernate Cloud AI Actionを有効にしたら知らせるように伝えます。 ステップ3. ユーザーが必須アクションを設定したことを確認したら、ステップ4へ進みます。として返される)available_action_id を使用します。
id
フィールドにresults
run_action操作に必要な文字列を記入する。) run_action操作に必要な文字列を記入する。 ユーザーのリクエストを使用して、必要に応じて指示やその他のフィールドを記入する。アクション
- アクション:企業WeChatグループロボット:企業WeChatグループにメッセージを送信する
- アクション:奇信宝:企業向けビジネス写真情報の照会
- アクション:AI画像生成:画像の作成(テキストを入力して画像を生成する)
必須アクション]には、このGPTで使用したいアプリケーションアクションの名前を入力します。アプリケーションアシスタントのアプリケーション名とアクションを参照してください。

3 アクションの追加

以下の内容をスキーマにコピーしてください。以下のスキーマの内容を変更しないでください。
{
"openapi": "3.0.2",
"info": {
"title": "集简云 AI Actions for GPT (Dynamic)",
"version": "1.0.0",
"description": "Equip GPTs with the ability to run thousands of actions via 集简云."
},
"servers": [
{
"url": "https://chat.jijyun.cn"
}
],
"paths": {
"/v1/openapi/exposed": {
"get": {
"operationId": "list_available_actions",
"summary": "List Available Actions",
"parameters": [
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AvailableActionResponseSchema"
}
}
}
}
},
"description": "List all the currently available actions for the user. If you try to run an action and receive an error\n that it does not exist, try refreshing this list first.",
"security": [
{
"AccessPointApiKeyHeader": [
]
}
]
}
},
"/v1/openapi/exposed/{available_action_id}/execute_v2/": {
"post": {
"operationId": "run_action",
"summary": "Run Action",
"parameters": [
{
"in": "path",
"name": "available_action_id",
"schema": {
"title": "Available Action Id",
"type": "string",
"pattern": ".*_jjyibotID_.*",
"example": "62_326_jjyibotID_jjy_robot_1001"
},
"required": true,
"example": "62_326_jjyibotID_jjy_robot_1001"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"description": "Run an available action using data. You will include associated params from list_available_actions in the data of the request.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunRequest"
}
}
},
"required": true
},
"security": [
{
"AccessPointApiKeyHeader": [
]
}
]
}
}
},
"components": {
"schemas": {
"AvailableActionSchema": {
"title": "AvailableActionSchema",
"type": "object",
"properties": {
"id": {
"title": "Id",
"description": "The unique ID of the available action.",
"type": "string"
},
"operation_id": {
"title": "Operation Id",
"description": "The operation ID of the available action.",
"type": "string"
},
"description": {
"title": "Description",
"description": "Description of the action.",
"type": "string"
},
"params": {
"title": "Params",
"description": "Available hint fields for the action.",
"type": "object"
}
},
"required": [
"id",
"operation_id",
"description",
"params"
]
},
"AvailableActionResponseSchema": {
"title": "AvailableActionResponseSchema",
"type": "object",
"properties": {
"results": {
"title": "Results",
"type": "array",
"items": {
"$ref": "#/components/schemas/AvailableActionSchema"
}
},
"configuration_link": {
"title": "Configuration Link",
"description": "Guide the user to setup new actions with the configuration_link. You can optionally add ?setup_action=... onto configuration_link to set up a specific 集简云 app and action For example: https://actions.jijyun.cn/gpt/start?setup_action=gmail find email",
"type": "string"
}
},
"required": [
"results",
"configuration_link"
]
},
"RunResponse": {
"title": "RunResponse",
"description": "This is a summary of the results given the action that was run.",
"type": "object",
"properties": {
"id": {
"title": "Id",
"description": "The id of the run log.",
"type": "string"
},
"action_used": {
"title": "Action Used",
"description": "The name of the action that was run.",
"type": "string"
},
"input_params": {
"title": "Input Params",
"description": "The params we used / will use to run the action.",
"type": "object"
},
"review_url": {
"title": "Review Url",
"description": "The URL to run the action or review the AI choices the AI made for input_params given instructions.",
"type": "string"
},
"result": {
"title": "Result",
"description": "A trimmed down result of the first item of the full results. Ideal for humans and language models!",
"type": "object"
},
"additional_results": {
"title": "Additional Results",
"description": "The rest of the full results. Always returns an array of objects",
"type": "array",
"items": {
"type": "object"
}
},
"result_field_labels": {
"title": "Result Field Labels",
"description": "Human readable labels for some of the keys in the result.",
"type": "object"
},
"status": {
"title": "Status",
"description": "The status of the action run.",
"default": "success",
"enum": [
"success",
"error",
"empty",
"preview"
],
"type": "string"
},
"error": {
"title": "Error",
"description": "The error message if the action run failed.",
"type": "string"
},
"assistant_hint": {
"title": "Assistant Hint",
"description": "A hint for the assistant on what to do next.",
"type": "string"
},
"full_results": {
"title": "Full Results",
"description": "The full results, not summarized, if available. Always returns an array of objects.",
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"id",
"action_used",
"input_params",
"review_url",
"additional_results",
"full_results"
]
},
"ErrorResponse": {
"title": "ErrorResponse",
"type": "object",
"properties": {
"error": {
"title": "Error",
"description": "Error message.",
"type": "string"
}
},
"required": [
"error"
]
},
"RunRequest": {
"title": "RunRequest",
"description": "Try and stuff as much relevant information into the data as possible. This type of action allows optionally setting preview_only if the user wants to preview before running.",
"type": "object",
"properties": {
"data": {
"title": "Data",
"description": "The params we used / will use to run the action",
"type": "string"
},
"preview_only": {
"title": "Preview Only",
"description": "If true, we will not run the action, but will do a dry-run and return a preview for the user to confirm.",
"default": false,
"type": "boolean"
}
},
"required": [
"data"
]
}
},
"securitySchemes": {
"AccessPointApiKeyHeader": {
"type": "apiKey",
"in": "header",
"name": "Authorization"
}
}
}
}
4 認証方法とAPIキーの設定

APIの認証方法を選択する
Auth Typeで「Custom」を選択し、App Helper API連携設定で取得したAPI Keyを追加する。

-
- APIキー:「準備:ステップ5」で取得したAPIキーを入力します。
-
- カスタム・ヘッダ名:Authorizationを記入
例

5 GPTのテストとリリース

設定が完了するとGPTが自動的に更新されるので、[Save]をクリックして使用範囲を設定します。
これを保存して、GPTを正式に使い始める:

一般的な問題
Q1: このサービスは有料ですか?
GPTなどの言語モデルから呼び出す場合、AIが生成したリクエスト・パラメータは、Tiburon Cloudアプリケーション・アクション・インターフェースを直接呼び出します。
ただし、Tibbo Cloudに組み込まれているアプリケーションの一部(ビジネス情報照会、入札情報照会など)は、使用ごとに課金されます。料金は、Tibbo Cloudプラグインセンター(https://apps.jijyun.cn/plugcenter)でご確認いただけます。
さらに、APIリクエストの頻度には制限があり、現在のデフォルトは毎秒20リクエスト(20QS)ですが、それ以上のリクエスト頻度が必要な場合は、お問い合わせください。
Q2:LangchainのようなLLMモデル・アーキテクチャでの使用はサポートされていますか?
サポートについては、別途文書を作成する。
Q3: インターフェイスしたいアプリケーションが、すでにTibbo Cloudとインターフェイスしているアプリケーションのリストにない場合はどうすればよいですか?
App Assistantツールで "Webhook "を設定し、ソフトウェアのインターフェイスを要求し、アクションの説明をカスタマイズすることができます。

アプリケーション・インターフェースをすべてのユーザーが利用できるようにしたい場合は、Tiburon Cloud Open Platformを通じてアプリケーションを提出し、認証および実行インターフェースを設定することができます。詳細については、https://jijyun.cn/open.html
Q4:GPTやファンクションではなく、直接アプリケーションアシスタントを呼び出してもいいのでしょうか?
アプリケーションアシスタント自体もAPIインターフェースの呼び出し方法を提供しています。インターフェースのドキュメントを参照してください: https://yuju2023.apifox.cn/api-95488292
Q5: ツールとして使用したい独自の知識コンテンツがある場合はどうすればよいですか?
GPTsはファイルのアップロードをサポートしていますが、サイズ制限とストレージコスト(1日あたり)があります。 私たちは、これを処理するためのより良い方法を提供します。まず、Language Gathering AIのナレッジセンターからアップロードし、ツールで使用するツールとして「Language Gathering AI: Query Knowledge Content」を追加します。

Q6 GPTが公開されないのはなぜですか?
GPTをマルチプレイヤーアベイラビリティに公開するには、プライバシーポリシー・ウルを追加する必要があります。

プライバシー・ポリシーを追加するには、一般にアクセス可能なオンライン・ドキュメントまたは独自のウェブ・ページを見つける必要があります:
Q7 現在、どのようなアプリケーションやアクションがアクセスに対応していますか?
https://www.jijyun.cn/apps/。