Open AI credentials: connect them without using them in every node

Hi,

I connected my Open AI credentials to use my assistants for specific tasks. However, the issue is that whenever I use an ASK Ai node, Gumloop attempts to connect to my Open AI keys even though I didn’t select the AI assistant node.

Please check the attached flow. I would like to continue using your credentials to access OpenAI o1, but I encountered an error because it tried to connect to my API instead. How can I resolve this? When I chatted with the Gumloop Agent, it told me that I could choose when to use my credentials and when not to, but I don’t see this option.

https://www.gumloop.com/pipeline?workbook_id=9qvVXffm4VsfuzFdbnBYSX&tab=3&run_id=StXnKaynkSqV9pffNU4jBi

Hey @Lucavi94,

Right now, there’s no way to switch between API key credentials. I’d recommend setting up a custom node for the assistant that takes your API key directly. Once you do that, you can remove it from the credentials, and the AI nodes will default to using Gumloop’s key.

I have a custom node for the assistant here if you’d like to use it—also shared with your account, so you can add it to an existing workflow from the node library: Custom Assistant Node.

More on creating custom nodes:

Thank you a lot; the problem is that actually, I’m using a Google sheet that contains many sources as the context connected to the Ask AI node. In the custom node that you sent me, I see only an input “prompt.” Is there a workaround for this?

Yeah, you can use a Combine Text note to format the data from the spreadsheet with the prompt. Eg: https://www.gumloop.com/pipeline?workbook_id=eySbe5Z2jzSu2rBRT7NyUY

let me know if that works.

I tried to use the custom node in my flow, which should generate a LinkedIn post from some sources in a Google sheet via my Open AI assistant and post everything on Slack once it is ready. The flow runs successfully, but then on Slack, I receive this: “Something went wrong with your request. Here’s what happened: ‘LastError’ object has no attribute ‘get’”. When I used normal Ask Ai (removing the combine text and custom node AI) it didn’t happen so I guess the problem is in the custom node. Any idea?

Flow that doesn’t work: Google Sheet Reader → Join list items → Combine Text → Custom Node AI → Send Slack Message
Flow that works: Google Sheet Reader → Join list items → Node Ask AI → Send Slack Message

Hey @Lucavi94 – Can you share the run link so I view the inputs/outputs plus the error please? You can find the run link on the https://www.gumloop.com/history page or through the Previous Runs tab on the canvas.

Here you are I just removed my API keys because I didn’t know how to hide them. Is this link the one you were looking for?

Thank you! Yeah that’s the link but I removed it from the post since it had your API key. The traceback error should be fixed now, let me know.

thank you, now it works!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.