Notion node fails when text field is more than 2000 characters

I am building a prompt manager workflow that refines a raw prompt and saves it to Notion. I want to use notion as my repository. When I get a refined prompt (defined as a text field on Notion ) that is larger than 2000 characters, it gives an error saying its bad request and content length should be 2000. What can I do, prompts can have alrge text and my whole tool will be rendered useless if i cant save large prompts .


1 Like

Hey @Swati hope all is well.

The limit you see comes from Notion API limits, see here:

The solution could be to split the text into multiple Rich Text objects. Each such chunk can up to 2000 chars and there can be up to 100 chunks. In theory this should allow you to pass up to 200k characters.

1 Like

I instead decided to have a backup table on supabase, so when prompts are larger , I store on overflow table with reference of notion id. Thank you for your reply :slight_smile:

You are most certainly welcome! :slight_smile:

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