Google Antigravity and n8n: YouTube to LinkedIn post app
Watch on YouTube ↗ Subscribe on YouTube ↗
Use Google Antigravity with Gemini 3 Pro to build a small web dashboard that sends a YouTube URL to an n8n workflow on a Hostinger VPS, which should return a LinkedIn post, blog article and tweets. The first attempts show failed to fetch and a 500 error, then the workflow runs for 3 minutes 39 seconds after a webhook fix and a Gemini billing setup. The app does not yet display the post or infographic, which only appear in Google Drive and KIE.
Video summary
The video covers 10 parts: Intro and what the app does, Install the n8n MCP and API key, Move the workflow from Hostinger to local, Antigravity builds the dashboard app, Install the Apify community node, Switch to the Hostinger n8n instance, Add a webhook trigger to the workflow, Troubleshoot the workflow execution error, Fix the Gemini rate limit with billing, and Generate the LinkedIn post and infographic.
What this video covers
What you build
A React dashboard on localhost calling an n8n webhook that transcribes a video with Apify, summarizes it with Gemini, writes content with Claude and makes an infographic through KIE.
Tools used
Key steps
- Ask Gemini for instructions, install the n8n MCP and put the n8n API key into an MCP config file.
- Have Antigravity build the dashboard files and an implementation plan.
- Switch from a local n8n to the Hostinger instance and install the Apify node.
- Replace the form trigger with a webhook and set the path and response mode.
- Debug the failed to fetch and 500 errors, passing the video URL into the next node.
- Set up Google Cloud billing to clear a Gemini rate limit and top up Claude credits.
- See the run complete, with the infographic created in KIE and uploaded to Google Drive.
Not covered
- Showing the LinkedIn post and infographic inside the app, which is not finished.
- Security of exposing a webhook to a public web app that triggers paid API calls.
- Costs per run for the transcription, Gemini, Claude and KIE steps.
- A release. Mike may host the app and charge a subscription later.
In this video
- 0:00 Intro and what the app does
- 0:42 Install the n8n MCP and API key
- 1:40 Move the workflow from Hostinger to local
- 2:20 Antigravity builds the dashboard app
- 4:00 Install the Apify community node
- 5:22 Switch to the Hostinger n8n instance
- 8:43 Add a webhook trigger to the workflow
- 10:42 Troubleshoot the workflow execution error
- 12:40 Fix the Gemini rate limit with billing
- 14:40 Generate the LinkedIn post and infographic
Questions and answers
Did the dashboard work?
Partly. It triggered the n8n workflow, which completed, but it does not yet display the generated content.
Why did it say failed to fetch?
The app could not reach the n8n instance or the right webhook path. It improved after switching to the remote instance and correcting the path.
How long did the workflow take?
About 3 minutes 39 seconds for the full run.
Keep learning
Transcript
Hey there, welcome to the channel. In this video, I'm going to be taking you through step by step how to connect N to an MCP server in Google Antigravity. This is the editor we're going to be using in this case in order to control your N from a web display like this to transform videos into engaging LinkedIn posts, blog articles, and tweets in seconds. So to get started, what you're going to want to do is come on over to something like Google Gemini.
And in this case, I just asked it to create an app in Google Antigravity, which connects NA to a website. So it shows the instructions here. First, you need to connect NA to Antigravity via the MCP. So first of all, you need to install uh n8n MCP on your local machine, which I've already done over here. And then I just have to put the API key into a configuration file over here. So you're just going to go to settings and then it would be n8n API.
Read the rest of the transcript
And this is where you get your API key. And then essentially what you do is you just create this JSON file which is called MCP config.json somewhere here. But I'm not going to actually show it because I don't want to reveal my API key. And and now basically what we're doing is we're just building the web app to connect it to NA so that anybody can use this particular automation.
So if I go ahead and enter in a YouTube URL, it's probably not going to work because I'm getting this set up on my local server right here. So if I just go ahead and type in nin right here, that's going to bring it in bring it up on local host. And then eventually I can use something like Hostinger where I've already got N installed and I connect can connect it up over here if I want to allow anybody to access this website.
But in this case, I'm just going to come over here to N which is running on Hostinger and I'm just going to export this template. And then I'm going to come on over to my local host and I'm just going to import it over here. So, we'll create the workflow and I'm just going to go ahead and import that file that we've got and that will make it available over here on my local machine.
So, now if we come back over to Google Antigravity, you can see I'm building out the entire app right here. We've got all the files which I didn't have to write a single line of code in order to create. And it's just going through step by step and creating this implementation file right here, the YouTube content repurposer dashboard. Right? And again, this is just going to make it a lot easier for clients to use this.
And then I could actually charge a monthly subscription char fee in order to use it. So it' be like a micro SAS platform. So I'm going to come down here and I'm just going to go ahead and keep running the commands. This is going to restart the N server. And keep in mind, this is the first time I've really delved into Google Antigravity. So, I'm still learning as I'm going along here. But I just want to see if this can actually work.
So, we'll come back over to the browser and I'm just going to go ahead and refresh this and we'll paste in a YouTube link. Now, if I hit generate content, it still says failed to fetch because it's I think it's not properly connected to n8n yet. So, that's what this should do. It's going to start n8n on alternate port to bypass any conflicts. So it will just start it on port 5679 looks like.
So we're going to come back over here and I'm just going to change the port. So we'll see if it can load n. And now I'm going to have to go ahead and log into my account again. I've already created a tutorial on the channel showing how to create this and it's a huge timesaver for creating LinkedIn posts from YouTube videos. Looks like this part's actually not connected up properly yet because I need to install the appy node.
So, we're just going to go ahead and install that. And then we're just going to enter in the package name, which is this right here, amplify n8n nodes/Apify. That's how we're getting the transcript from YouTube. And let's come back over to Google Antigravity. Looks like it restarted the server. So, check the server status. Verify dashboard. Uh, making sure it's installed properly. And then we're going to accept this. Now, it's running on port 5679 and the React app is running on port 5173.
So, we'll go ahead and run these commands. And this is just using Google Gemini 3 Pro. We can obviously switch the model here as well. You can also use Claude. If you want to use Claude Sonnet instead, you can do that, but I'm just going to use Google Gemini in this case. And there we go. So now we've got the Amplify uh node installed. So if we come back to automation, you can see this is now connected up properly.
We need to create import a workflow with the web hook trigger and name the path. It's going to connect the web hook. It's going to use the dashboard to test with real uh YouTube urls. I'm just going to go ahead and refresh that. Paste in. And it still says failed to fetch unfortunately. So, for some reason, it's not able to uh get this. So, the better thing to do would be to just run it on my n8n over here.
So in order to do that, I could just tell it to connect to my n8n instance running on Hostinger and then I think we should just be able to paste in the URL. I mean the IP address at that IP address. So let's see if this works. User provided remote in URL updating service configuration to use this instead of the local instance. That's exactly what I want it to do. So, we're going to be using that URL instead of in on my own machine.
And ideally, what it should be able to do is it can just pull in this particular workflow and it's going to run it from the web UI over here. So, again, it's just saying I've updated dashboard to connect to your remote in instance at this URL. So, that's what we want. And then it looks like we will need to use that particular web hook. But I can't see the path for some reason. So I don't know which path to use for the web hook.
Maybe it has something to do with my theme. So we can check the color scheme right here. And if we change it to light. Still can't actually see what that says, unfortunately. Um, so I'm not exactly sure what's going on there, but we'll figure that out later. Just going through step by step here. I'm going to go ahead and accept that. So, for some reason, it's still not actually connected up properly to the n8n server, the instance, which is going to be over here.
As you can see, it has updated this particular URL here. So, workflow ID is just going to be YouTube content repurposer. Um, but I think it's just called it's actually called this instead. So, that's the ID. So, we're just going to go ahead and replace this with the actual ID. Now, if we come back over here, let's see if it can actually do something. Still says failed to fetch. So, obviously a work in progress.
Um, but it's coming together quite nicely and eventually I'll be able to connect to the n8n instance on my virtual private server and we can use this to generate infographics that look like this within a couple minutes. And then from here it will also create the LinkedIn posts and it's going to upload them to Google Drive. And then all you have to do is just make those posts on LinkedIn. So this is a huge timesaver.
If you want access to this once it's finished, I'll probably put it up on its own website so you can use this. Here's the features. It's got the modern UI remote n8n integration mock data mode. And in order to actually run this, it's going to be running the nin instance on my Hostinger account with the URL right here. And in order to get started, I'm just going to run npm install. And that's just going to set up all of the node modules.
And then we're just going to run npm rundev. So that's now running on localhost port 5174. In order to make the generate content button work, it's telling me step by step what I need to do. Need to set up a workflow in your n8n instance and create a new workflow here and then add a web hook node. So essentially what I'm going to do is I'm just going to modify this existing workflow right here.
And all I'm going to do is drop in a web hook instead of the on form submission because we're not going to be using that in this case. So I'm just going to disconnect that and it's going to use the web hook instead so that I can control it from the web UI over here. So now we just need to set up this web hook http method post. So this is going to be post right here.
And then the path that we want to set is YouTube content repurposer right here. So there's the path. And then the response mode is going to be on last node to return the generated content. So response is here is going to be when last node finishes right there. And then I also need to connect my logic. So I need to add the nodes to process the YouTube URL uh YouTube transcript node lm chain and then I need to ensure the final node returns a JSON object
with the following structure right here. So once all of that is set up it's going to run successfully. So now I've just told Google Antigravity what the specific web hook URL is that we're going to be calling which is over here. This is the production URL and I've already published this workflow. So, it is now ready to go. It's going to update the URL. So, we're just going to go ahead and accept that here. Accept the changes.
Now, it's got the full web hook URL in order to call it. And then once I go ahead and run this app, it should call the n8n automation. So, it looks like it may have worked. Uh, no, it still says workflow execution failed. Error in the workflow. So that's definitely a step in the right direction. Before it was just saying there was it wasn't able to call it.
But now if I go over here and I just say listen for test events it should call this specific web hook URL. If I just go ahead and refresh this generate content. Looks like it's still not calling the web hook URL for some reason. So what I'm going to do is I'm just going to copy this error message that I'm getting right here. Workflow execution failed. And I'm just going to come over to Google Antigravity and type in it's not running the NA workflow.
When I click generate content and I'm just going to paste in this error right here. I've confirmed the 500 status code with the error message from the curl command. This means the request is hitting in but the workflow execution is failing specifically. Now I can see that the latest execution succeeded. All I had to do was disconnect it from the rest of the automation because this particular node is not working correctly. We're not passing in the right JSON value right here.
As you can see, here's the output. So now, anytime that I run this over here, you can see it is getting back the generated content. Now, so this is the URL that we want, which is coming inside the header body. So, we just have to get this specific URL and then we're going to pass that into the next node over here.
So, if I just go ahead come back to the editor, we're going to connect this up again and see if we can get the data that was processed from the web hook and we're just going to put in that particular URL here. So, now I have the JSON body URL which is passing in here and then it's getting the entire transcript over here. As you can see, this is the transcript from the YouTube video.
And then what we're doing is we're just splitting that out and combining it again. So, we've got the entire transcript. And then the next step is it's going to run Google Gemini in order to create a summary, but it looks like it exceeded the current quota. So, I may need to add some extra API credits. So, if we come on over to AI Studio, you have reached a rate limit. Set up billing to increase your limits and unlock your work.
So, all I have to do here is I'm just going to set up my billing account. And once this is done, I shouldn't be hitting any more rate limits. So, let's just go ahead and set up Google Cloud Console here. And I just need to add my information. So, we're going to use this one here and finish the account setup. Google Cloud billing account is being processed. Processing time varies. All right.
But that should at least remove the rate limit now because you can see I was hitting a limit right here. So now if we go ahead and do this once again we shouldn't encounter that rate limit this time. So one last time here we're just going to come over. We're going to execute this workflow. Going to go to executions and I'm going to come over here and click on generate content. And it should start running it. Go to executions. Now it's running.
Hopefully it doesn't have any issues this time. And once this is done, I just wanted to output the LinkedIn post and the infographic right over here inside the web UI. Next, I'm just going to go ahead and top up my API credits and claude, which is what it's using to create the LinkedIn posts. So, once that's done, it will be able to finish this automation run.
This is an example of what you can do with Google Antigravity in order to connect a web app to your NA instance which in my case is just running over here on Hostinger. So anytime I run this, it will run this automation. And the ultimate goal with this is just to spit back the LinkedIn post and the infographic right here.
So now if I come back over to Google Antigravity, I'm just going to tell it to create the LinkedIn post and the infographic and display it in the web app once the automation is finished running. Will automatically transcribe what I said and implement those changes right now. And even if it doesn't display it over here, it's automatically uploading it to my Google Drive folder. And then you simply take this infographic and the post and you post it up on LinkedIn.
And if we come over to KIE here, this is what I'm using to create the infographics. Let's come over here. And then we're going to come down to logs. This is running right now. This is creating the infographic. And you can also see some of the previous infographics we created as well. So this should be finished soon. And it's all being run from my web app here using the instance on my virtual private server. Now finally the entire workflow execution has completed.
It succeeded in about 3 minutes 39 seconds. And ideally it would actually just display it over here. You can see it's getting close. It says LinkedIn post and then it also has a generated infographic image place marker right here. But the only thing missing is I'm not returning it in the proper format so that it can get those and post them automatically to the website. But it's getting very very close.
So if I open this, you can see this is the infographic that it created in a couple minutes right here from the YouTube video. And then we've also got the entire LinkedIn post and LinkedIn newsletter and also blog article in here as well. Hopefully, you've enjoyed this and please subscribe to the channel if you haven't already. Uh, and let me know if you would like something like this for your own business. Thanks so much for watching. signing off.



