Understanding & optimizing the Top P value in your Zapier AI automation

What is the Top P value in Zapier when creating AI automation and how do you optimize it for your automations?

Tomas Jancovic (It's AI Thomas)
Zapier AI Automation
3 min readJan 22, 2024

--

by It's AI Thomas
Monday 22 Jan 2024

When it comes to incorporating language models like ChatGPT into Zapier workflows, understanding and adjusting the Top P Value becomes crucial for achieving the desired output.

Thus, let’s explore how this value can be optimized.

For those who enjoy watching videos rather than reading, I have also made a short video with everything included:

How to understand the Top P value in Zapier’s context

Zapier offers you the option to utilize OpenAI language models in your automations.

The fancy definition is: Top P is nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.

In simple terms, the Top P value in this context determines how the model selects the next word in a sequence, impacting the creativity and relevance of the generated text.

Top P value in Zapier when using the ChatGPT block

What Top P values should you use in Zapier?

Here is the overview of what low and high Top P values will do for you in Zapier.

Low Top P value (e.g., 0.1 or 0.2):

In Zapier workflows, a low Top P value leads to more predictable and logical text outputs.

This setting is ideal for tasks requiring high accuracy and specificity, such as generating standard customer responses or data-driven reports.

High Top P value (e.g., 0.9 or 1.0)

A higher Top P value allows for more creative and diverse outputs.

This is particularly useful in Zapier for tasks that benefit from varied expressions, like content creation, brainstorming ideas, or composing unique and (each time) different email marketing messages.

Best practices for Top P value in Zapier

Here are the best practices for you when determining your Top P value in Zapier.

Avoid Zero

Setting the Top P value to zero in Zapier’s language model integrations limits the model’s creativity, which is counterproductive for most automated text generation tasks.

Balance creativity and coherence

For tasks that require a balance of creativity and coherence, such as drafting professional emails or creating engaging social media posts, moderate Top P values like 0.3 or 0.4 are recommended.

Experiment for optimal results

Since Zapier automates tasks across various applications, it’s beneficial to experiment with different Top P values to find the optimal setting for each specific task.

You can test the step when using a ChatGPT block in your automation, and if you don't like the output, change the Top P value to either a higher or lower value.

When changing and adjusting your Top P value in Zapier, remember to change the memory key to start a new conversation so the old output does not influence the new outputs you generate — this is the most common mistake I see people do when using ChatGPT in Zapier.

Tailoring the Top P value to specific Zapier automations

Here are some industry examples to get you going.

Customer support automation

  • For automating customer support messages, a lower Top P value ensures responses are relevant and to the point.

Content generation

  • When using Zapier to automate content generation, a higher Top P value can yield more creative and varied content.

Data summarization

  • In tasks like summarizing data or reports, a moderate Top P value strikes a balance between factual accuracy and readability.

It is recommend altering only Temperature or Top P (and not both)!

If you are interested in the temperature value with examples, read more about it in this article I wrote not a while ago.

Summary of the Top P value in Zapier

In the context of Zapier, the Top P value is a key parameter that influences the effectiveness of language model integrations in automated workflows.

By carefully adjusting this value, you can tailor the creativity and relevance of the text output to suit various automation needs.

All helpful links:

My own FREE, no-junk resources: https://bit.ly/itsaithomas

OpenAI playground where you can try different Top P values and temperature levels and see how the outputs look like: https://platform.openai.com/playground?mode=chat
Zapier: https://zapier.com/

--

--

Tomas Jancovic (It's AI Thomas)
Zapier AI Automation

👋 Data scientist who also helps you automate your business processes (with Zapier and AI)! My YouTube: https://www.youtube.com/@itsaithomas/videos