Skip to main content

Hello Zapier Community!

Based on a requirement for production grade generative AI automations I’ve built an integration to allow humans to review AI generated content in between automations.
 

For example take a Zapier automation that generates a personalized email using OpenAI. With Human in The Loop, a human can review to make sure the content is correct or fine tune before sending it to the customer.

 

How it works

To setup a workflow similar to above leveraging human in the loop extension you will have to setup two automations. One to generate the content for the email and send to approval, another one to send the email to customer after approving. It’s straightforward to setup.

Step 1: Setup the action to generate content and send to a human

 

Breakdown of the flow,

  1. The trigger listens to new google form submissions.
  2. Information from the form is then sent to OpenAI to craft an email response.
  3. Create a new task for a human to review. This action will return a unique link to share with the reviewer.
  4. Link is emailed to the reviewer.
Human in the Loop step​​​​​

 

As part of the configuration I am sending the AI generated content with some metadata,

 

Configuring the step

 

The output from the new Human in the Loop task is a URL. A human can visit this url in a browser to review the content.

Output from new Human in the Loop Task

 

The output can be emailed or sent through Slack to a reviewer, or even create a task in Clickup as a todo.

This is what reviewer will see when visiting the url. The content is editable. Upon approval or rejection, Zapier will trigger ‘Human in the Loop Task Reviewed. This is the second part of the setup

 

The review page seen by the reviewer

Step 2: Setup the trigger to take action after a human review the content

To handle reviewed content we’ll need to create another automation. For the example shared in the beginning I’ve setup it up as below,

  1. Using “Human in Loop Task Reviewed” trigger from EnforcedFlow
  2. A filter condition to make sure only approved ones are processed.
  3. Send the email to customer

 

Configuring the trigger

As you can see in below screenshot, the trigger receive the information from first automation upon a review is complete. The trigger receives below information,

  1. An ID
  2. Title: The title used to create the task
  3. Original content: The content used in task creation
  4. Approved content: The content after approval. If the reviewer doesn’t change anything this will be same as original content
  5. Review outcome: Outcome of the review, approved or rejected
  6. Metadata: List of metadata, you can see the email passed in first automation has been passed 

 

 

Get started

Thanks for staying till the end 🙂 The extension is still invite only and free to use, you can access it below

https://zapier.com/developer/public-invite/215376/f00e6e4e83c5990562e070d50d5c05a1/

Hi ​@sahanlak,

 

Thank you for sharing this incredibly detailed and insightful post with our community! Your solution for implementing a 'Human in the Loop' review process in Zapier automation is innovative.
This will definitely benefit those who want to maintain a level of human oversight in their workflows, especially when dealing with AI-generated content. Your step-by-step guide is very clear and will undoubtedly help users set up similar workflows.

 

We appreciate your contribution to our community and look forward to more innovative solutions. If you have any questions or need further assistance, feel free to ask.


Reply