Fun with HTTP Requests on an AI Agent

I am trying to access my Tableau Server via the API which works great. I have the AI Agent setup with Open AI Model and Window Buffer Memory. I then have two HTTP Requests coming off the tool part of the Agent. The one is Tableau Auth. It has my personal access token from Tableau and when I run that by itself, it works as expected. The second tool is Find Workbook1. This SHOULD us the credentials/token from the Tableau Auth tool to gain access and then pull the expected data back - in this case a list of the workbooks. The problem is that I can’t seem to make Find Workbook1 see the credentials and token from Tableau Auth. I get an authentication error when it hits Find Workbook1. I have tried using expressions like - {{ $json[“response”][“credentials”][“token”] }}. I tried {{ $json[“Tableau Auth”][“response”][“credentials”][“token”] }}. I tried “{{ $(‘Tableau Auth’).item.json.credentials.token }}”.

It seems like the Find Workbook1 node is not looking at Tableau Auth for the credentials/token. I am not sure how to make it either.

I feel like I am missing something obvious. Any help is appreciated.

Screenshot 2024-10-01 193043

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Jamie_C

Have you tried making a workflow that contains the auth and the find workbook and using that in tool?

I suspect the issue here might be that the tools are MF running in a specific issue and it is done to the LLM to call what ever it may need.