# Basic LLM chain issue.: Parameter "Text" is required

**URL:** <https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956>\
**Category:** Questions\
**Tags:** node, workflow-building\
**Created:** [May 13, 2024, 3:05am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956 "2024-05-13T03:05:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naved\_Shaikh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/naved_shaikh/32/32626_2.png) [@Naved\_Shaikh](https://community.n8n.io/u/Naved_Shaikh)\
**Post date:** [May 13, 2024, 3:05am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/1 "2024-05-13T03:05:32Z")

</div>

I couldnt able to execute the Basic LLM chain node Im getting an error: \* Parameter “Text” is required.Please find the screenshot for reference . Kindly suggest

 ![Screenshot 2024-05-12 at 11.03.59 PM](https://europe1.discourse-cdn.com/n8n/original/3X/e/0/e00eb413a8c3a3173d7e6adc423927d5c411a87d.png)  
 ![Screenshot 2024-05-12 at 11.04.21 PM](https://europe1.discourse-cdn.com/n8n/original/3X/0/1/01d4606b8970da5b585467768041a5af99816b23.png)

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [May 13, 2024, 3:05am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/2 "2024-05-13T03:05:33Z")

</div>

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:**

---

<div class="post-metadata">

**Author:** ![giulioandreini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/giulioandreini/32/20129_2.png) [@giulioandreini](https://community.n8n.io/u/giulioandreini)\
**Post date:** [May 13, 2024, 10:29am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/3 "2024-05-13T10:29:59Z")

</div>

Hi @Naved_Shaikh  
👋 welcome to the n8n community!

The “Prompt” parameter in the “Basic LLM Chain” is not used to write the prompt directly but to pick how you want to insert the prompt.

If you select “Take from the previous node automatically”, you should then input into the node a field `chatInput` with the text of the prompt.

If you select “Define below” you can write the prompt directly in the field “Text”.

See an example workflow here with both cases:

Let me know if this helps

---

<div class="post-metadata">

**Author:** ![Naved\_Shaikh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/naved_shaikh/32/32626_2.png) [@Naved\_Shaikh](https://community.n8n.io/u/Naved_Shaikh)\
**Post date:** [May 14, 2024, 12:52am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/4 "2024-05-14T00:52:26Z")

</div>

Hi,

Thanks for your prompt response , it helps but Im facing now an issue with new error in Open AI node.  
The error is : 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: [https://platform.openai.com/docs/guides/error-codes/api-errors](https://platform.openai.com/docs/guides/error-codes/api-errors). Open node

And once I cheked my open AI accounts and credit I still have enough credits here is the screenshot and I have also confirmed with my open AI credentials that too is fine.

 ![Screenshot 2024-05-13 at 8.17.18 PM](https://europe1.discourse-cdn.com/n8n/original/3X/2/3/23c87533be14e6b75323a5aa6db0719c6452933a.jpeg)  
 ![Screenshot 2024-05-13 at 8.16.59 PM](https://europe1.discourse-cdn.com/n8n/original/3X/b/a/bafac8f47bcb930c21a4233280cb685480af68a7.png)  
 ![Screenshot 2024-05-13 at 8.51.45 PM](https://europe1.discourse-cdn.com/n8n/original/3X/1/c/1cb009ee85a4b94f5a87db7d056affde274c4bc8.png)  
kindly advice please.

---

<div class="post-metadata">

**Author:** ![giulioandreini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/giulioandreini/32/20129_2.png) [@giulioandreini](https://community.n8n.io/u/giulioandreini)\
**Post date:** [May 14, 2024, 6:47am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/5 "2024-05-14T06:47:49Z")

</div>

Hi @Naved_Shaikh  
this seems like a problem related to Open AI rather than n8n.

I suggest trying to set up a very basic workflow with the basic Open AI node to check if that works correctly.

Let me know if that works

---

<div class="post-metadata">

**Author:** ![Naved\_Shaikh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/naved_shaikh/32/32626_2.png) [@Naved\_Shaikh](https://community.n8n.io/u/Naved_Shaikh)\
**Post date:** [May 15, 2024, 3:48am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/6 "2024-05-15T03:48:36Z")

</div>

Hi @giulioandreini  
There was an issue with openAI which I have resolved but couldnt able to solve the main purpose of updating a row in a sheet with customised email in a particular row via OpenAI.Please check the screenshot and advice. Even though I have entered correct input field.Also when I open the google sheet1 couldnt able to see any updates in intended row. Kindly advice.

 ![Screenshot 2024-05-14 at 11.42.41 PM](https://europe1.discourse-cdn.com/n8n/original/3X/2/6/26dfc1763a128f3f6ec80f57eda6c6dc0a33a76d.jpeg)  
 ![Screenshot 2024-05-14 at 11.50.22 PM](https://europe1.discourse-cdn.com/n8n/original/3X/4/1/410ab8c0b02d7d2eb4064c5c1851ac9be94bb8dd.png)

---

<div class="post-metadata">

**Author:** ![giulioandreini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/giulioandreini/32/20129_2.png) [@giulioandreini](https://community.n8n.io/u/giulioandreini)\
**Post date:** [May 15, 2024, 6:51am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/7 "2024-05-15T06:51:06Z")

</div>

hi @Naved_Shaikh  
a few suggestions:

1. In this case you don’t need to use the Loop Over Items. n8n will iterate automatically on each item.
2. In Google Sheets1 node, I recommend using a field like company name, company domain, or company ID to match the update (parameter: Column to Match On). This is used to recognize the row to update in the sheet.
3. Then in Google Sheets1 node you need to map the data coming from OpenAI to another parameter ((in Values to Update) that corresponds to the sheet column you want to fill
4. Looking at your use case, you could probably use the Open AI node

I attach you a demo workflow you can look at:

I hope it helps!

---

<div class="post-metadata">

**Author:** ![Naved\_Shaikh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/naved_shaikh/32/32626_2.png) [@Naved\_Shaikh](https://community.n8n.io/u/Naved_Shaikh)\
**Post date:** [May 24, 2024, 8:45am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/8 "2024-05-24T08:45:53Z")

</div>

Hi,

I got the output by using open AI message a model as shown in the above but my question is whats the difference in using basic LLM and open AI both nodes works same or provide a different output.As I have only use openAI for generating output does it provide some different output if I use Basic LLM as a node?

Regards.

---

<div class="post-metadata">

**Author:** ![giulioandreini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/giulioandreini/32/20129_2.png) [@giulioandreini](https://community.n8n.io/u/giulioandreini)\
**Post date:** [May 24, 2024, 9:08am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/9 "2024-05-24T09:08:17Z")

</div>

The output would be the same.  
The main advantage would be that you could use an output parser to force LLM to follow a JSON schema in the response. And that you could quickly experiment by switching the LLM nodes for different ones without the need to reconfigure the prompt(s)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 22, 2024, 9:08am UTC](https://community.n8n.io/t/basic-llm-chain-issue-parameter-text-is-required/45956/10 "2024-08-22T09:08:17Z")

</div>

Closed on August 22, 2024, 9:08am UTC

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