TechBuzzPro

How to Link Replicate to Notion via Zapier

· 7 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can link Replicate to Notion through Zapier by creating a Zap that uses Replicate's official Zapier app as the trigger or action, and Notion's official Zapier app as the other step. The most common setup is a Zap that runs a Replicate model when a new Notion database item is created, then writes the model's output back into that same Notion page. This requires a Replicate account with an API token, a Notion account with a database that has the right properties, and a Zapier account. No coding is needed, but you do need to understand how Replicate predictions and Notion database properties map to each other.

What You'll Need

  • A Replicate account (sign in at replicate.com) and an API token from your account settings. The token is a long string that starts with r8_.
  • A Notion account and a database (not just a page) with at least one text property for input and one text property for output. Note the database's data source or database ID if you plan to use the API directly, but Zapier's Notion app can list your databases for you.
  • A Zapier account on a plan that allows multi-step Zaps. Free plans limit you to two-step Zaps, which may be enough for a simple trigger-action pair, but a three-step Zap (Notion trigger, Replicate action, Notion action) requires a paid plan.
  • Basic familiarity with the Replicate model you want to use. Each model has its own input schema (for example, prompt, image, num_outputs), and you need to know the exact input names and expected value types.

Menu labels in Zapier, Notion, and Replicate can differ slightly by version, workspace plan, or region, so if a label does not match exactly, look for the closest equivalent.

Step-by-Step

  1. Create the Notion database. In Notion, create a database with a title property (for example, Name), a text property for your input (for example, Prompt), and a text property for the output (for example, Result). If you want to store an image URL or file, add a URL property or a Files & media property. Keep the property names simple and consistent.
  2. Connect Notion to Zapier. In Zapier, go to Apps and search for Notion. Click Connect and follow the OAuth prompt to sign in to Notion and choose the workspace and pages you want Zapier to access. Zapier will only see pages you explicitly share during the connection.
  3. Connect Replicate to Zapier. In Zapier, search for Replicate and connect it. When prompted for an API token, paste the token from your Replicate account settings. Zapier stores the token and uses it for all Replicate steps in that Zap.
  4. Choose your trigger. For a Notion-to-Replicate flow, use the Notion trigger New Database Item (or Updated Database Item if you want to re-run when a field changes). Select your database and, if asked, the property that Zapier should use to identify new items. Test the trigger to pull in a sample item.
  5. Add a Replicate action. Add an action step and choose Replicate. Select the action that runs a model. Zapier's Replicate integration typically offers Create Prediction or a model-specific action. If you see a model-specific action, pick the model you want; otherwise choose Create Prediction and enter the model version or owner/name string exactly as shown on the model's Replicate page.
  6. Map the input fields. In the Replicate action, you will see fields for the model's input schema. Map the Notion Prompt property to the model's prompt input (or the equivalent). For image models, map a URL property to the image input. Set any optional inputs such as num_outputs or guidance_scale only if you understand their effect; otherwise leave defaults.
  7. Test the Replicate action. Zapier will run the model once with your sample data. This consumes Replicate compute and may take from a few seconds to a minute depending on the model. Check the output: it usually includes a prediction ID, status, and output URL or text.
  8. Add a Notion action to write back. Add a second Notion action, such as Update Database Item or Update Page. Select the same database and the item ID from the trigger step. Map the Replicate output field (for example, output or output[0]) to your Notion Result property. If the output is an array, map the first element or join the array depending on what Notion property type you use.
  9. Test the full Zap and turn it on. Run the complete Zap with the sample item, confirm the Notion page updates correctly, then publish the Zap. From then on, each new database item will trigger a Replicate prediction and write the result back.

Common Mistakes

  • Using a page instead of a database. Zapier's Notion triggers and actions for database items require a database, not a standalone page. If your trigger cannot find your content, check that you are pointing at a database.
  • Wrong property type. Mapping a Replicate output array to a Notion text property can fail or produce a JSON-looking string. Use a text property for plain text and a URL property for single URLs.
  • Incorrect model input names. Replicate models have exact input keys such as prompt, negative_prompt, or image. Typos or using a different name will cause the prediction to fail or ignore your input.
  • Expired or revoked API token. If you regenerate your Replicate token, the Zapier connection breaks. Reconnect Replicate in Zapier after changing the token.
  • Assuming synchronous output. Some models return a prediction ID immediately and finish later. If your Zap writes back before the prediction completes, the output may be empty. Use a model or action that waits for completion, or add a delay step if available on your plan.

Tips

  • Start with a simple text-to-text model to confirm the wiring, then switch to image or audio models once the Zap works.
  • Keep a dedicated Notion database for Zapier runs so you can filter and debug without cluttering your main workspace.
  • Use Zapier's Filter step to skip items that already have a result, preventing duplicate runs when you update a page.
  • Name your Notion properties exactly as you reference them in Zapier; renaming a property later can break field mappings.
  • Check Replicate's model page for the input schema before building the Zap. The schema lists required and optional fields and their types.

Troubleshooting

If the Zap does not run, first check that it is turned on and that the trigger is finding new items. In Zapier, open the Zap and use Test on each step. If the Notion trigger returns no items, confirm the database is shared with Zapier and that you are using the correct database view.

If the Replicate step fails, read the error message in the Zapier task history. Common errors include an invalid API token, an unknown model version, or a missing required input. Reconnect Replicate and re-enter the model identifier exactly as shown on its Replicate page.

If the Notion update step fails, check that the property names and types match. A text property will not accept an array; map a single string. If you see a permissions error, reconnect Notion and make sure the database is included in the pages shared with Zapier.

If the output is empty, the prediction may still be running. Some Replicate models are asynchronous. Use a model action that waits for the result, or check the prediction status in Replicate and consider a different model that returns output synchronously. If you must use an asynchronous model, you may need a more advanced setup with a webhook, which Zapier's Replicate integration may not support directly; in that case, use Replicate's API from a code step only if you are comfortable with it.

If you hit Zapier task limits, reduce the number of steps or use a filter to run only on specific items. Free plans have limited tasks and two-step Zaps; a three-step Zap requires a paid plan.

Frequently Asked Questions

Do I need a paid Zapier plan to connect Replicate and Notion?

For a simple two-step Zap (one trigger and one action), the free plan may work. For a three-step Zap that triggers on Notion, runs Replicate, and updates Notion, you need a paid plan that allows multi-step Zaps.

Can I use Replicate models that output images?

Yes, but Notion cannot store raw image data directly from a text field. Map the image URL to a Notion URL property, or use a Files & media property if Zapier supports uploading the file. Otherwise, store the URL and view the image from there.

Why does my Replicate prediction return an ID instead of the result?

Some models are asynchronous and return a prediction ID immediately. The output appears later. Use a model or Zapier action that waits for completion, or check the prediction status in Replicate before writing back.

Does Zapier support every Replicate model?

Zapier's Replicate integration can run models by version or owner/name, but the available fields depend on the model's input schema. Very new or custom models may not appear in a dropdown; you can usually enter the model identifier manually.

What happens if I change my Notion database properties after building the Zap?

Renaming or deleting a property can break field mappings in Zapier. Re-test the Zap and remap the affected fields if you change your database structure.

Can I trigger Replicate from a Notion page instead of a database item?

Zapier's Notion triggers for database items require a database. To trigger from a page, you would need a different trigger, such as a form submission or a webhook, and then create or update a Notion page as an action.