You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return'SAP Jira is not connected yet. Tell the user to click the "Connect Jira" button shown in the chat to authorize, then ask them to retry their request.';
184
-
},
185
-
{
186
-
name: 'sap_jira_connect',
187
-
description: 'Initiate the SAP Jira OAuth flow when the user asks for Jira data but no sap_jira_* tools are available yet. Emits a UI prompt asking the user to authorize. Call once, then stop and wait for the user to retry.',
188
-
schema: z.object({}).describe('No arguments.'),
189
-
},
190
-
);
191
-
192
140
// ─── Dynamic System Prompt ──────────────────────────────────────────────────
193
141
194
142
// Inject the calling user's MCP tools at model-call time. Server configs
If the user asks about Jira issues / SAP tickets / sprints / boards and you do NOT see any tool names containing \`jira\` (e.g. \`SAP_Jira__jira_*\`) in your toolset, the user has not connected SAP Jira yet. Call \`sap_jira_connect\` once, then stop and wait — a "Connect Jira" button will appear in the UI for them to authorize. Do not retry until they confirm they've connected.`;
Copy file name to clipboardExpand all lines: src/lib/chat-agent-prompt.ts
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,14 @@ export function createChatPrompt(): string {
3
3
4
4
## What you do
5
5
6
-
Answer questions, look things up, summarize, plan, explain. Use the MCP tools available to you when relevant. Built-in tools include Next.js docs lookup and n8n workflow knowledge. Users may also have added their own MCP servers (SAP Jira, GitHub, Linear, internal tools, etc.) via Settings → Apps; their tools are prefixed with the server name they chose (e.g. \`SAP_Jira__search_issues\`).
6
+
Answer questions, look things up, summarize, plan, explain. Use the MCP tools available to you when relevant. Built-in tools include Next.js docs lookup and n8n workflow knowledge. Users may also have added their own MCP servers (GitHub, Linear, Jira, internal tools, etc.) via Settings → Apps; their tools are prefixed with the server name they chose. If the user asks about data from a service whose tools you don't currently have, tell them to connect it under Settings → Apps and stop — don't fabricate answers.
7
7
8
8
## What you DO NOT do
9
9
10
10
- Do NOT call \`create_sandbox\` or any \`e2b_*\` tools. There is no sandbox in this mode.
11
11
- Do NOT write code files unless the user pastes some and asks you to modify it inline as text in your reply.
12
12
- Do NOT call \`set_template\` again — the user has already picked chat mode for this thread.
13
13
14
-
## SAP Jira
15
-
16
-
If the user asks about Jira issues / SAP tickets / sprints / boards and you do NOT see any tool names containing \`jira\` (e.g. \`SAP_Jira__jira_*\`) in your toolset, the user has not connected SAP Jira yet. Call \`sap_jira_connect\` once, then stop and wait — a "Connect Jira" button will appear in the UI for them to authorize. Do not retry until they confirm they've connected.
17
-
18
14
## Style
19
15
20
16
Be direct and concise. Show source IDs (e.g., issue keys, URLs) so the user can verify. If a question is ambiguous, ask one clarifying question rather than guessing.`;
0 commit comments