feat(wizard): start bot setup from scenarios

This commit is contained in:
huanghuoguoguo
2026-07-11 11:45:39 +08:00
parent a2b30957b6
commit 24322836ce
10 changed files with 963 additions and 208 deletions
+30 -4
View File
@@ -1913,7 +1913,7 @@ const enUS = {
next: 'Next',
finish: 'Create & Deploy',
confirmCreateBot: 'Confirm, Create Bot',
createSuccess: 'Pipeline created and linked to bot successfully!',
createSuccess: 'Processor created and linked to the bot successfully!',
botCreateSuccess: 'Bot created successfully!',
botSaveSuccess: 'Bot configuration saved and enabled!',
createError: 'Failed to create resources',
@@ -1922,13 +1922,39 @@ const enUS = {
completeSaveError: 'Failed to save completion status. Please try again.',
step: {
platform: 'Platform',
scenarioChannel: 'Scenario & Channel',
botConfig: 'Bot Setup',
aiEngine: 'AI Engine',
done: 'Done',
},
scenario: {
title: 'What should this bot do?',
description:
'Start with one outcome. You can add more behaviors after the bot is created.',
messageReply: 'Reply to messages',
messageReplyDescription:
'Answer incoming private or group messages with an AI Pipeline.',
welcomeMembers: 'Welcome new members',
welcomeMembersDescription: 'Run an Agent when someone joins a group.',
handleDepartures: 'Handle member departures',
handleDeparturesDescription:
'Run an Agent when someone leaves or is removed.',
reviewFriendRequests: 'Review friend requests',
reviewFriendRequestsDescription:
'Let an Agent decide how to handle new friend requests.',
handleModeration: 'Handle moderation events',
handleModerationDescription:
'Run an Agent when a group member is restricted.',
pipelineBadge: 'Pipeline',
agentBadge: 'Agent',
},
platform: {
title: 'Select a Platform',
description: 'Choose the messaging platform your bot will connect to.',
title: 'Select a Channel',
description:
'Only channels that support the selected scenario are shown.',
chooseScenarioFirst: 'Choose a scenario to see compatible channels.',
noCompatiblePlatforms:
'No installed channel currently supports this scenario.',
},
botConfig: {
title: 'Configure Your Bot',
@@ -1961,7 +1987,7 @@ const enUS = {
done: {
title: 'All Set!',
description:
'Your bot has been created and connected to the AI pipeline. You can now manage it from the workbench.',
'Your bot has been created and connected to its processor. You can now manage it from the workbench.',
backToWorkbench: 'Back to Workbench',
},
},
+31 -5
View File
@@ -1834,7 +1834,7 @@ const jaJP = {
next: '次へ',
finish: '作成&デプロイ',
confirmCreateBot: '確定、ボットを作成',
createSuccess: 'パイプラインが作成され、ボットにリンクされました!',
createSuccess: 'プロセッサーが作成され、ボットにリンクされました!',
botCreateSuccess: 'ボットが正常に作成されました!',
botSaveSuccess: 'ボット設定が保存され、有効になりました!',
createError: 'リソースの作成に失敗しました',
@@ -1843,14 +1843,40 @@ const jaJP = {
completeSaveError: '完了状態の保存に失敗しました。もう一度お試しください。',
step: {
platform: 'プラットフォーム',
scenarioChannel: 'シナリオとチャンネル',
botConfig: 'ボット設定',
aiEngine: 'AIエンジン',
done: '完了',
},
platform: {
title: 'プラットフォームを選択',
scenario: {
title: 'このボットで何を実現しますか?',
description:
'ボットが接続するメッセージングプラットフォームを選択してください。',
'まず主要な動作を1つ選びます。作成後に他の動作も追加できます。',
messageReply: '受信メッセージに返信',
messageReplyDescription:
'AI Pipeline でプライベートまたはグループメッセージに返信します。',
welcomeMembers: '新しいメンバーを歓迎',
welcomeMembersDescription:
'メンバーがグループに参加したときに Agent を実行します。',
handleDepartures: 'メンバーの退出を処理',
handleDeparturesDescription:
'メンバーが退出または削除されたときに Agent を実行します。',
reviewFriendRequests: '友だち申請を確認',
reviewFriendRequestsDescription:
'新しい申請の処理方法を Agent に判断させます。',
handleModeration: 'モデレーションイベントを処理',
handleModerationDescription:
'グループメンバーが制限されたときに Agent を実行します。',
pipelineBadge: 'Pipeline',
agentBadge: 'Agent',
},
platform: {
title: 'チャンネルを選択',
description: '選択したシナリオに対応するチャンネルのみ表示されます。',
chooseScenarioFirst:
'シナリオを選択すると、対応するチャンネルが表示されます。',
noCompatiblePlatforms:
'現在インストールされているチャンネルはこのシナリオに対応していません。',
},
botConfig: {
title: 'ボットを設定',
@@ -1884,7 +1910,7 @@ const jaJP = {
done: {
title: '完了しました!',
description:
'ボットが作成され、AIパイプラインに接続されました。ワークベンチから管理できます。',
'ボットが作成され、プロセッサーに接続されました。ワークベンチから管理できます。',
backToWorkbench: 'ワークベンチに戻る',
},
},
+23 -5
View File
@@ -1834,7 +1834,7 @@ const zhHans = {
next: '下一步',
finish: '创建并部署',
confirmCreateBot: '确定,创建机器人',
createSuccess: '流水线已创建并关联到机器人!',
createSuccess: '处理器已创建并关联到机器人!',
botCreateSuccess: '机器人创建成功!',
botSaveSuccess: '机器人配置已保存并启用!',
createError: '创建资源失败',
@@ -1843,13 +1843,32 @@ const zhHans = {
completeSaveError: '保存完成状态失败,请重试。',
step: {
platform: '平台接入',
scenarioChannel: '场景与频道',
botConfig: '机器人配置',
aiEngine: 'AI 引擎',
done: '完成',
},
scenario: {
title: '这个机器人要完成什么?',
description: '先选择一个主要结果,机器人创建后还可以继续添加其他行为。',
messageReply: '回复收到的消息',
messageReplyDescription: '使用 AI Pipeline 回复私聊或群聊消息。',
welcomeMembers: '欢迎新成员',
welcomeMembersDescription: '有人加入群组时运行 Agent。',
handleDepartures: '处理成员离群',
handleDeparturesDescription: '有人离开或被移出群组时运行 Agent。',
reviewFriendRequests: '审核好友请求',
reviewFriendRequestsDescription: '让 Agent 决定如何处理新的好友请求。',
handleModeration: '处理群管理事件',
handleModerationDescription: '群成员受到限制时运行 Agent。',
pipelineBadge: 'Pipeline',
agentBadge: 'Agent',
},
platform: {
title: '选择平台',
description: '选择机器人要接入的消息平台。',
title: '选择频道',
description: '这里只显示支持所选场景的频道。',
chooseScenarioFirst: '请先选择场景,再查看可用频道。',
noCompatiblePlatforms: '当前安装的频道都不支持这个场景。',
},
botConfig: {
title: '配置机器人',
@@ -1877,8 +1896,7 @@ const zhHans = {
},
done: {
title: '一切就绪!',
description:
'机器人已创建并连接到 AI 流水线。你现在可以在工作台中管理它。',
description: '机器人已创建并连接到处理器。你现在可以在工作台中管理它。',
backToWorkbench: '返回工作台',
},
},