Skip to main content

Enable retry buttons

In your review template, you can enable retries in the settings of most field types like text, images, or markdown. gotoHuman - Allow retries

Requesting retries during reviews

In the review UI, this will add retry controls below the field. gotoHuman - Retry buttons The chat button will open a modal where the reviewer is able to iterate on the field’s content (i.e. the artifact) by retrying or changing the prompt. They can always go back and forth between different generated versions of the artifact, so they can safely give it another try without losing previous results. gotoHuman - AI chat

Connect to your workflow

To make the AI retry feature work, you need to support the webhook that is triggered when a reviewer requests a retry. After regenerating the artifact, you’ll need to update the review request with the new artifact.

Allow editing the prompt (optional)

For the prompt to show up in the chat and to allow editing it, you need to pass it in your review request in the following format:
This can simply be the initial prompt, even when you’re updating the review request after a prompt edit by the reviewer (s. below). We are only processing this for the initial request.

Handle retry webhook

Clicking the retry button or editing the prompt will trigger the webhook you set up for this review template with a "type": "chat". If you passed a prompt in your review request, the webhook will also include a messages array with the (maybe edited) prompt as the first message. Until we support full chat conversations, this is the only message you’ll get.
Our n8n node handles the webhook internally, so the webhook data below will be the output of the node.

Update review request

After regenerating the artifact (content) of this field in response to the retry webhook, you need to update the review request with the new artifact. For simplicity you can send the same request as for your inital request for review, only adding the ID of the review to update.
See it in action in one of our n8n workflow templates: n8n AI Email Agent, n8n LinkedIn AI Agent, or the more advanced n8n AI Promo Video Creator