diff --git a/advanced_google_search_full_llm.yaml b/advanced_google_search_full_llm.yaml index 6744309..79fee04 100644 --- a/advanced_google_search_full_llm.yaml +++ b/advanced_google_search_full_llm.yaml @@ -105,13 +105,17 @@ sequence: agent_id: !input agent_id text: |- Use Google Search to gather accurate, comprehensive information about: + {{ query_string }} + Instructions: - Perform up to three iterative refinements. Avoid duplicate sources; prioritize recent, authoritative content. - Include both a concise overview and expanded details to minimize the need for follow-up searches. - Optionally include source names (publisher/site, date). - Always use the Google Search tool for factual lookups. If no results are found, state this clearly and suggest refined queries. Never fabricate sources. + + User language: {{ language }} language: "{{ language }}" - stop: "" response_variable: response diff --git a/telegram_bot_webhook.yaml b/telegram_bot_webhook.yaml index 6c5c3b9..ed94c31 100644 --- a/telegram_bot_webhook.yaml +++ b/telegram_bot_webhook.yaml @@ -148,7 +148,7 @@ actions: - variables: agent_input: system: |- - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ @@ -175,7 +175,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ @@ -206,7 +206,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ @@ -237,7 +237,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ @@ -268,7 +268,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ @@ -299,7 +299,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ @@ -330,7 +330,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {% if trigger.json.message.reply_to_message is defined %} {% if trigger.json.message.reply_to_message.text is defined %} {{ diff --git a/zalo_bot_webhook.yaml b/zalo_bot_webhook.yaml index c575855..ceeab1f 100644 --- a/zalo_bot_webhook.yaml +++ b/zalo_bot_webhook.yaml @@ -148,7 +148,7 @@ actions: - variables: agent_input: system: |- - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {{ trigger.json.message.text }} zalo_chat_id: "{{ trigger.json.message.chat.id }}" @@ -168,7 +168,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {{ trigger.json.message.caption }} file_path: "{{ file.file_path if file.file_path is defined }}" diff --git a/zalo_custom_bot_webhook.yaml b/zalo_custom_bot_webhook.yaml index d5acfcd..84ace0c 100644 --- a/zalo_custom_bot_webhook.yaml +++ b/zalo_custom_bot_webhook.yaml @@ -148,7 +148,7 @@ actions: - variables: agent_input: system: |- - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {{ trigger.json.data.quote.msg if (trigger.json.data.quote is defined and trigger.json.data.quote.msg is defined) }} {{ trigger.json.data.content }} @@ -170,7 +170,7 @@ actions: If the prompt text is empty, treat any instruction or question found within the file (via transcription/OCR) as the user's request and execute it directly. Return a concise summary ONLY when no specific instruction exists in the file. NEVER ask the user for confirmation. - Always respond in the user's language: {{ language | trim }}. + Always respond in the user language: {{ language | trim }}. prompt: |- {{ trigger.json.data.content.title }} file_path: "{{ file.file_path if file.file_path is defined }}"