Categories: FAANG

Easy AI workflow automation: Deploy n8n on Cloud Run

n8n is a powerful yet easy-to-use workflow and automation tool for multi-step AI agents, and many teams want a simple, scalable, and cost-effective way to self-host it. With just a few commands, you can deploy n8n to Cloud Run and have it up and running, ready to supercharge your business with AI workflows that can manage spreadsheets, read and draft emails, and more. The n8n docs now tell you how to deploy the official n8n Docker image to our serverless platform, connect it to Cloud SQL for persistent data storage, call Gemini as the agents’ LLM, and (optionally) connect your workflows directly to Google Workspace.

Deploy n8n to Cloud Run in minutes

You can deploy the official n8n image directly to Cloud Run. This gives you a managed, serverless environment that automatically scales from zero to handle any workload, so you only pay for what you use. That means whenever you’re not actively using n8n, you’re not paying for any compute and your n8n data is persisted in Cloud SQL.

To first try out n8n quickly on Cloud Run, deploy it with this one command:

code_block
<ListValue: [StructValue([(‘code’, ‘gcloud run deploy –image=n8nio/n8n \rn –allow-unauthenticated \rn –port=5678 \rn –no-cpu-throttling \rn –memory=2Gi’), (‘language’, ”), (‘caption’, <wagtail.rich_text.RichText object at 0x7fc87b8c8a60>)])]>

This gives you a running instance of n8n that you can use to try out n8n and all its awesome features for workflow automation with the power of AI. Connect your first n8n agent to Gemini (provide your Gemini API key for the “Google Gemini Chat Model” credentials) and see it in action.

Then when you’re ready to use n8n for actual workflows, you can follow the steps in the n8n docs for a more durable, secure setup (using Cloud SQL, Secrets Manager, etc.). You can either use a Terraform script or follow along step-by-step through each gcloud command in the instructions.

Connect Google Workspace tools

A key benefit of hosting on Google Cloud is the ability to easily connect n8n to your Google Workspace tools. The n8n docs walk you through the steps to configure OAuth for Google Cloud, allowing your n8n workflows to securely access and automate tasks using Google tools like Gmail, Google Calendar, and Google Drive.

Here’s a demo showing an n8n instance on Cloud Run that uses Gmail and Google Calendar to schedule appointments on your behalf whenever an email hits your inbox with a request to meet:

The two AI agents in this n8n workflow call Gemini to do the following:

  • The Text Classifier reads your incoming emails to see which ones are asking for time to meet

  • The Agent checks your calendar for your availability, and sends a response with a suggested time

Cloud Run is great for all AI apps

Cloud Run is a versatile, easy-to-use runtime for all your AI application needs. Whether your agentic app was made with n8n, LangChain, ADK, or no framework at all, you can deploy it to Cloud Run. This collaboration on Cloud Run and n8n is another example of how we aim to simplify the process for developers to build and deploy intelligent applications.

Next steps

AI Generated Robotic Content

Recent Posts

Absolutely INSANE, that this made this locally…

Krea2, H3, MiniMax Music, (Starlight Topaz) pass and Premiere. Fucking RAD. submitted by /u/-becausereasons- [link]…

23 hours ago

Samsung Galaxy Z Fold8 and Galaxy Z Fold8 Ultra Review: The Right Shape

Nearly a decade after its debut, Samsung’s Galaxy Fold finally comes into its own.

24 hours ago

Pushing Minimax H3 V2V to the Absolute Limit

Me again as a raptor at home. Minimax H3 ref2va, default workflow with 3 inputs:…

2 days ago

Retrospec Joe Rev 2 Review (2026): Putting the ‘Joy’ in Joyride

This affordable electric BMX delighted my entire family, even if its range, ride comfort, and…

2 days ago

Cunk on AI – Sam Altman – MiniMax H3

My wife did this Cunk parody with a 3060 12gb and 32gb of system ram.…

3 days ago

Understanding the Role of Latent Space in Machine Learning Models

In this article, you will learn what latent spaces are and how they serve three…

3 days ago