Question

Improving ChatGPT Automation for Notion Content: Accuracy & Character Limit Challenges


I aim to develop an automation that triggers Notion and utilizes OpenAI's ChatGPT to rewrite the content obtained from Notion. Subsequently, the modified content will be saved to another Notion database. While the automation is functional, the ChatGPT output occasionally lacks accuracy, and I wish to restrict the content generation to a specific character limit. Unfortunately, I'm facing challenges in achieving this goal.

Your assistance in resolving this matter would be greatly appreciated.

Thank you.


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

11 replies

Userlevel 7
Badge +14

Hi @Shiwani 

Good question.

We’d need to see the OpenAI prompt being used.

Hi Troy,

Thanks for your quick response to the matter.

I’m using a tweet as a prompt.

Userlevel 7
Badge +11

Hi @Shiwani! 👋 

When you say you’re “using a tweet as a prompt”, I’m a little confused. Is the trigger for the Zap Twitter or Notion? Or is it that the tweets are being added into Notion by another Zap and you’re building a new Zap that’s triggering from Notion and then wanting to use ChatGPT in a Zap to rewrite it?

If you could send over a screenshot of the Action section of the ChatGPT action in the Zap that would help to allow us to see if there’s any settings or tweaks you could make to the set up of that action to help improve it’s accuracy. Please remove/hide any private information from the screenshot before sharing (like names, email addresses etc.).

With the need to “restrict the content generation”, if you’re wanting to ensure what’s output by ChatGPT is under a certain character limit, perhaps you could add that requirement into the prompt you’re using? 

I look forward to hearing from you on this!

Hi SamB 

Thank you for replying to my issue.

In the same zap I’m triggering Twitter and from a Tweet list I’m storing tweets in a Notion Database, from there I’m giving that tweet as a prompt in action of openAI and then I want to get restrcited or specific number of characters for the regenerated content from chatgpt. 

I’m attaching the screenshot and the link of that zap here - https://zapier.com/editor/201345653/draft/201349575/fields

 

I’m looking forward to hearing from you soon. Kindly help me with this.🙏🏻

 

Also, is there any possibillity to get support from zapier team directly apart from asking here in the community? 

Also, is there any possibillity to get support from zapier team directly apart from asking here in the community? 

SamB Troy Tessalone

Userlevel 7
Badge +11

Thanks for sending over that helpful screenshot, @Shiwani! 🙂

Ah ok, so the prompt is just the tweet itself. Usually for the Prompt field in a Send Prompt (OpenAI) action I’d expect to see some instructions given for what you’d like OpenAI to do. Updating the Prompt field so that it includes instructions for what you’d like OpenAI to do with that tweet should help to improve it’s accuracy here. 

You’d also want the prompt to include instructions to have only a specific number of characters returned. For example you could try using a prompt like: Rewrite this text in no more than 100 characters: “[Tweet field goes here]” 

You can learn more about writing prompts here: How to write an effective GPT-3 or GPT-4 prompt 
 

Also, is there any possibillity to get support from zapier team directly apart from asking here in the community? 


There’s a number of different support options depending on the Zapier plan you have. You can read more about this here: Zapier Support 

Hope that helps. Please do keep us in the loop on how you get on with this! 

Hi SamB,

Thanks for replying.

I’ve already tried what you are suggesting me to do. But I tried again and still not getting the better results. 

I’m attaching the screenshot so that you can have a look on that.

Userlevel 7
Badge +11

Thanks for giving that a try, and for sharing those helpful screenshots here, @Shiwani. Sorry to hear it didn’t improve the results.

Hmm, it looks as though the text in the ChatGPT_Content field has been cut short, well before it reaches 180 characters. Is that what you mean by it not giving better results?

If so, there was a similar issue of the text produced by ChatGPT appearing truncated, that was discussed here: 

So I’m wondering if that’s what is causing the text to be cut off here as well.

To test that theory, can you try either doing a live test of the Zap or removing the value in the Max Tokens field (as mentioned on that other topic), to see if that allows you to see the full text produced by OpenAI?

Let us know how it goes, keen to ensure you’re all set here! 🙂

Thanks for sending over that helpful screenshot, @Shiwani! 🙂

Ah ok, so the prompt is just the tweet itself. Usually for the Prompt field in a Send Prompt (OpenAI) action I’d expect to see some instructions given for what you’d like OpenAI to do. Updating the Prompt field so that it includes instructions for what you’d like OpenAI to do with that tweet should help to improve it’s accuracy here. 

You’d also want the prompt to include instructions to have only a specific number of characters returned. For example you could try using a prompt like: Rewrite this text in no more than 100 characters: “[Tweet field goes here]” 

You can learn more about writing prompts here: How to write an effective GPT-3 or GPT-4 prompt 

Also, is there any possibillity to get support from zapier team directly apart from asking here in the community? 


There’s a number of different support options depending on the Zapier plan you have. You can read more about this here: Zapier Support 

Hope that helps. Please do keep us in the loop on how you get on with this! 

My zap is functional, but I'm running into accuracy issues with the ChatGPT output. Sometimes, the rewritten content doesn't quite meet my expectations in terms of accuracy and quality. Additionally, I'm struggling to figure out how to restrict the length of the generated content to a specific character limit. Is there a way to fine-tune the ChatGPT output or set character limits within Zapier for this purpose? Any tips or solutions would be greatly appreciated!" 

Userlevel 7
Badge +11

Thanks for reaching out here, @BakerAdan! 👋

In order to restrict the output to a specific length, in the prompt itself you’d need to reference the maximum number of characters you want it to return. That way ChatGPT will know how many characters it needs to limit it’s response to.

Improving the accuracy is going to take a fair amount of trial and error. The blog post I shared on How to write an effective GPT-3 or GPT-4 prompt contains a number of tips on prompt writing that can help to improve the accuracy. I’d recommend giving some of those tips a try to see what works best for your use case here. Please keep us updated on how you get on with this!