Use this powerful n8n workflow to automate AI content generation using the creativeathive/lemaar-door-urban model on Replicate. Features built-in API polling and robust error handling.
Download this n8n workflow template and start using it instantly.
AI Developers & Integrators: Users seeking pre-built n8n templates for asynchronous AI services. Creative Agencies: Teams needing to automate the creation of urban-themed digital assets using specific AI models. n8n Automation Specialists: Users who require a production-ready n8n workflow example demonstrating API polling logic. Technical Users: Individuals looking to integrate specialized AI models (like lemaar-door-urban) directly into their business processes using a custom n8n node setup.
This comprehensive n8n workflow is designed to manage the complexities of asynchronous AI generation requests via the Replicate API. Instead of simply sending a request and hoping for the best, this n8n automation template implements an intelligent polling mechanism. When the Manual Trigger starts the process, the system first sends the generation request to the creativeathive/lemaar-door-urban model and then enters a robust status checking loop. This ensures the workflow waits efficiently for the resource-intensive AI generation task to complete, whether it takes 5 seconds or 5 minutes. The structure of this n8n workflow includes built-in logging, parameter configuration, and clear success/error paths, making it a reliable and production-ready solution for integrating external AI models without needing a dedicated n8n node for Replicate.
The n8n workflow begins with the Manual Trigger, activating the execution chain.
Set API Token n8n node to define the necessary Replicate authentication key, followed by the Set Other Parameters n8n node, where all model inputs (like the prompt, image, and desired dimensions for the lemaar-door-urban model) are configured.Create Other Prediction n8n node, an HTTP Request node, sends a POST request to the Replicate API, initiating the AI generation job. This request uses the previously defined parameters and returns an initial prediction ID.Wait 5s n8n node, the Check Status n8n node begins polling the Replicate API using the prediction ID.Is Complete? n8n node checks if the job status is 'succeeded'. If not, the flow moves to the Has Failed? n8n node. If it has neither succeeded nor failed (meaning it's still processing), the flow loops back through the Wait 10s n8n node to retry the status check.Is Complete? n8n node confirms success, the result (including the generated content URL) is formatted by the Success Response n8n node. Failures are handled by the Error Response n8n node. Both paths terminate at the Display Result n8n node, providing a clear, structured JSON output for the user or the next n8n node in the chain.To deploy this powerful n8n workflow template, follow these steps:
Set API Token n8n node. Replace the placeholder value YOURREPLICATEAPI_TOKEN with your actual token.Set Other Parameters n8n node. Here you can adjust the prompt, image, width, and other detailed settings relevant to the creativeathive/lemaar-door-urban model.Manual Trigger n8n node to test the AI generation process. Manual Trigger (n8n trigger):
Function: Starts the n8n workflow execution upon user click.
Key Configuration: Simple, serves as the initial execution point for this n8n template.
Set API Token (n8n node):
Function: Securely defines the Replicate API token necessary for authentication.
Key Configuration: Sets the variable apitoken for use in subsequent HTTP Request nodes.
Set Other Parameters (n8n node):
Function: Configures the large set of input parameters required by the lemaar-door-urban model (e.g., prompt: "Create something amazing", image, width, height, etc.).
Key Configuration: Dynamically pulls the API token and sets default values for inputs like seed: -1, width: 512, and numoutputs: 1.
Create Other Prediction (HTTP Request n8n node):
Function: Sends the initial asynchronous request to Replicate to start the content generation job.
Key Configuration: Method: POST. URL: https://api.replicate.com/v1/predictions. Includes Authorization header (Bearer {{ $json.api_token }}) and a custom JSON body mapping all parameters.
Check Status (HTTP Request n8n node):
Function: Polls the Replicate API endpoint to check the current status of the prediction job using the prediction ID.
Key Configuration: Method: GET. URL: Dynamically constructed using the prediction ID from the previous request.
Is Complete? / Has Failed? (If n8n nodes):
Function: Provides flow control based on the prediction status (checks for 'succeeded' or 'failed').
Key Configuration: Conditional logic checking {{ $json.status }} against specific string values.
Wait 5s / Wait 10s (Wait n8n node):
Function: Introduces necessary delays in the polling loop to prevent overloading the Replicate API with requests. The 10-second wait facilitates reliable asynchronous handling within this n8n workflow structure.
Use this advanced n8n workflow to automatically scrape trending topics from Reddit, YouTube, and X. Leverage Google Gemini AI to filter high-potential content, perform deep analysis, and synthesize a comprehensive HTML content strategy report, all triggered via an n8n form.

Use this comprehensive n8n workflow to analyze trending topics on Reddit and X (Twitter) via AI. It generates subtopics, scores content for trend potential, and provides strategic content recommendations. Perfect n8n template for marketers.

Use this powerful n8n workflow to automatically generate 5 high-quality content ideas using Gemini Pro (Google AI) and instantly save them directly into a Google Sheet for easy content planning.

Automate AI content generation using this robust n8n workflow. Integrate the paigedutcher2/paigedutcher model via Replicate API, featuring status polling, error handling, and full customization. Start using these professional n8n templates today.

Use this robust n8n workflow to generate custom content using the vcollos/trefilio AI model on Replicate. This n8n workflow features automated API polling and robust error handling.

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos







































