Skip to content
Connecting AI-Agent...
 
Notifications
Clear all

Connecting AI-Agents, external workflows, and Telegram

4 Posts
3 Users
0 Reactions
4 Views
schaepdlx
(@schaepdlx)
Posts: 2
New Member
Topic starter
 

Hi everyone…

I feel like I'm very close, but something is missing. I couldn't find the solution in the forum or elsewhere.

Need the data from AI Agent to be found in ‘logs’ and sent to Telegram

I've managed to get the output data from a workflow called by the AI Agent. The result is good, but it's located in the ‘logs’ tab of the AI Agent’s output.

I'm unable to map this data (called ‘response’) into the next node, Telegram. The output from the AI Agent is as follows:

Please share your workflow

Share the output returned by the last node

This is from the AI agent.

This is from the following Telegram node. The ‘output tab’ on the previous image is where it is located.


{
"output": 
"<|python_tag|>tool_caller.call_tool("GetWeather", "InputOnCity")"
}
]

It feels like I'm very close and just missing a small setting somewhere…

:unamused:

Thanks in advance!

Information on your n8n setup

  • n8n version: 1.63.4
  • Database (default: SQLite): Default
  • n8n EXECUTIONSPROCESS setting (default: own, main):_ Default
  • Running n8n via (Docker, npm, callin.io cloud, desktop app): Docker Self hosted
  • Operating system: Windows
 
Posted : 20/11/2024 1:43 pm
Jim_Le
(@jim_le)
Posts: 35
Eminent Member
 

Hello!

The output from a tool can only be sent back to the Agent that utilized it. While the Agent might not return the tool's output verbatim, you can adjust the system prompt to encourage this.

If you require the precise output from a tool to be delivered to the user, using an agent might not be the most suitable approach. Here's an alternative solution:

 
Posted : 21/11/2024 5:32 pm
schaepdlx
(@schaepdlx)
Posts: 2
New Member
Topic starter
 

Hey there!

Thanks for taking the time and effort to reply, I really appreciate it.

:smiley:

I've noticed workflows from others that directly included a 'Get Weather workflow' using OpenWeatherMap, called from the AI agent. However, I couldn't figure out how they managed to receive the complete answer for further posting. I'll try this initial solution as a practice to see how far I can take it.

Your workaround involving the text classifier seems to address it perfectly and represents a thought process I hadn't considered before. Thank you for broadening my perspective on this. It appears I can utilize this for other scenarios as well, so I'm pleased to have received this guidance in your response.

Thanks for your assistance!


And… some excellent templates are available for inspiration, created by you. Keep up the great work! It's wonderful to learn this way.

:+1:

 
Posted : 22/11/2024 10:19 am
system
(@system)
Posts: 332
Reputable Member
 

This discussion was automatically closed 7 days following the last response. New replies are no longer permitted.

 
Posted : 29/11/2024 10:20 am
Share: