Skip to main content

Generate AI videos using Havis AI Grok Imagine

Workflow preview

Workflow preview
100%
Generate AI videos using Havis AI Grok Imagine preview
Open on n8n.io

1. Workflow Overview

Havis AI Grok Imagine n8n Workflow Summary This n8n workflow submits a video generation job to Havis AI Grok Imagine , waits for processing, polls task status, and returns result data when the job ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tran Trung Nghia.

Original n8n.io source

1.1 Workflow description

Title
Generate AI videos using Havis AI Grok Imagine
Workflow name
Generate AI videos using Havis AI Grok Imagine

Havis AI - Grok Imagine n8n Workflow

Summary

This n8n workflow submits a video generation job to Havis AI Grok Imagine, waits for processing, polls task status, and returns result data when the job completes.

Who is this for?

  • Creators who want a reusable no-code generation form.
  • Agencies building client-facing AI automation.
  • Developers who want an importable API test workflow.
  • n8n users connecting Havis AI output to storage, Slack, Sheets, Airtable, webhooks, or a CMS.

What this workflow does

  1. Opens an n8n Form Trigger for Grok Imagine inputs.
  2. Builds a clean JSON payload and removes empty optional fields.
  3. Sends a POST request to https://havis.ai/api/grok-imagine.
  4. Waits 8 seconds, then polls https://havis.ai/api/task/{task_id}.
  5. Loops while the task is processing.
  6. Returns task ID, status, result URLs, credits used, and submitted payload.
  7. Returns a clean error object if the task fails.

Setup

  1. Import the JSON workflow into n8n.
  2. Open the Form Trigger URL.
  3. Enter your Havis API key in api_key. Use only the key value; the workflow adds Bearer automatically.
  4. Fill in the model inputs and submit.

For production, store the API key in n8n credentials or environment variables instead of typing it into a public form.

Main payload fields

  • prompt (Required) - string
  • model (Optional) - string
  • duration (Optional) - number
  • images - collected from form URL fields

Example request body

{
 "prompt": "A playful cinematic scene with surreal motion",
 "model": "normal",
 "images": [
 "https://example.com/reference.jpg"
 ]
}

API documentation

Output fields

  • task_id - The generation task ID returned by Havis AI.
  • status - Usually completed, processing, or failed.
  • model - The public model slug.
  • result_urls - JSON string containing final R2/CDN result URLs.
  • credits_used - Credits deducted for the submitted task when returned by the API.
  • submitted_payload - The exact JSON payload sent to Havis AI.

Customization ideas

  • Add a Webhook Response node after Return Result to expose this as your own mini API.
  • Add Google Sheets or Airtable after Return Result to keep a generation log.
  • Add Slack, Telegram, or email notification for completed jobs.
  • Replace the Form Trigger with another app trigger for batch automation.
  • Increase the wait interval for long video or audio jobs.

Troubleshooting

  • 401 or 403: check your API key.
  • 402: the account does not have enough credits or model pricing is missing.
  • 422: required fields are missing or a field value is invalid.
  • No result URLs yet: the task is still processing; let the polling loop continue.
  • This template is fixed to https://havis.ai; use an API key created for Havis AI.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note - Request Input

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note - Payload Preparation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note - API Submission

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note - Polling and Output

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Form - Grok Imagine

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 7 - Build Payload

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Submit - Havis API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Wait 8s

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - Check Task Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Is Completed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Is Failed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Wait 8s (loop)

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 14 - Return Result

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Return Error

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

3. Summary Table

Workflow Generate AI videos using Havis AI Grok Imagine
Complexity advanced
Nodes 15
Categories Content Creation, Multimodal AI
Author Tran Trung Nghia
Published 10 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15587/15587.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate AI videos using Havis AI Grok Imagine do?

Havis AI Grok Imagine n8n Workflow Summary This n8n workflow submits a video generation job to Havis AI Grok Imagine , waits for processing, polls task status, and returns result data when the job ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.