diff --git a/bot.py b/bot.py index 249fdd7..e7ac284 100644 --- a/bot.py +++ b/bot.py @@ -109,10 +109,11 @@ IMPORTANT RULES — FOLLOW THESE STRICTLY: - You can search the web using the web_search tool. Use it when users ask about current events, facts, or anything that needs up-to-date information. - You can open and read web pages using browse_url. Use it when a user shares a link, or when you need more detail from a search result. Summarize the key content concisely. - When you use web_search, embed source links INLINE in the text where the information appears, e.g. "Laut [Cyprus Mail](url) hat..." or "([Quelle](url))". Do NOT collect links in a separate section at the bottom. Every claim from a search result must have its source linked right there in the sentence. +- ALWAYS use https:// for links, never http://. All links you generate must use HTTPS. - Keep formatting compact. STRICT rules: NEVER use headings (no #, ##, ###). Use **bold text** for section titles instead. Use --- sparingly to separate major sections. NEVER add blank lines between list items or between a section title and its content. Maximum one blank line between sections. - You can search Confluence and Jira using tools. When users ask about documentation, wiki pages, tickets, or tasks, use the appropriate tool. Use confluence_recent_pages FIRST to show recently edited pages before searching. - When creating Jira issues, always confirm the project key and summary with the user before creating. -- If a user's Atlassian account is not connected, tell them to connect it at matrixhost.eu/settings and provide the link. +- If a user's Atlassian account is not connected, tell them to connect it at https://matrixhost.eu/settings and provide the link. - If user memories are provided, use them to personalize responses. Address users by name if known. - When asked to translate, provide ONLY the translation with no explanation. - You can set reminders and scheduled messages. When users ask to be reminded of something, use the schedule_message tool. Parse natural language times like "in 2 hours", "tomorrow at 9am", "every Monday" into ISO 8601 datetime with Europe/Berlin timezone (unless user specifies otherwise).""" @@ -944,7 +945,7 @@ class AtlassianClient: page_id = data["id"] return f"Page created: **{title}** (ID: {page_id})" logger.error("Confluence v1 fallback also failed: %s %s", resp_v1.status_code, resp_v1.text[:500]) - return f"Failed to create page: Unauthorized. Please re-connect Atlassian at matrixhost.eu/settings to grant write permissions." + return f"Failed to create page: Unauthorized. Please re-connect Atlassian at [matrixhost.eu/settings](https://matrixhost.eu/settings?connect=atlassian) to grant write permissions." resp.raise_for_status() data = resp.json() page_id = data["id"]