Problem running workflow with AI Agent

Hey,

I am starting to run a very simple workflow where an AI Agent is summarizing an email. However, for some reason it shows that I have insufficient quota even though I have enough free quote on my account.

Does somebody know what might be the error?

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 @Stefan_Schieber Welcome to the community!

You’ll need to add credits to your account to use OpenAI’s API. Unfortunately, unlike the chatGPT/playground, usage is not free.

see similar question on the OpenAI forum here - Understanding API limits and free tier - API - OpenAI Developer Forum

2 Likes

Thanks Jim! That’s indeed very helpful! :slight_smile:

I am still running into problems sadly… Even though I have uploaded credits, it is still showing me “insufficient quota”.

Hey @Stefan_Schieber

Interesting… hmm are you able to share what kind of workfload you’re sending to OpenAI and at what rate ie. API requests per second, token count etc?

OpenAI uses a system of usage-tiers where the more you spend the higher quotas you will have access to - see https://platform.openai.com/docs/guides/rate-limits/usage-tiers?context=tier-one. You’ll be on tier one so if you keep within the advertised rate limits you should be good.

Another idea might be to double check you are using the correct API key linked to the correct billing account… I know I’ve made this mistake more than once in the past!

A common throttling technique in n8n is to use the “Loop over items” and “wait” nodes in combination to introduce little pauses between requests.

Hmm… Is there anywhere to look into how many API requests I am sending? So far I have only tried it a few times (maybe 20 times over the 5 days?).

The API key should be the right one.

Totally noobie here, sorry for the rookie debugging :smiley:

Hey @Stefan_Schieber

No worries. My advice is just try the “loop + wait” node approach and see if that works. If you’re still seeing quotas errors, there’s probably something else outside of n8n which may be the issue - I’d go as far as getting a new API key to be honest.

I’m facing the same problem with quote since my account is the paid $20. This plan do we have to put credits ?

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