From the course: Build with AI: Vibe Code a Prompt Engineering Agent to Drive LLM Adoption
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Adding the OpenAI API
From the course: Build with AI: Vibe Code a Prompt Engineering Agent to Drive LLM Adoption
Adding the OpenAI API
- [Instructor] We're going to connect to the OpenAI API from N8N so that we can use it to create an on-brand graphic. To do that, the first thing we're going to do is we're going to hit this plus button and then go into the AI module and select basic LLM chain. This is where we're going to set up the connection to OpenAI. So for the source, for the prompt, all you need to do is select define below, and then scroll down to model and press the plus button where it says add model. And we're going to search for open AI here. Let's choose the OpenAI chat model. And I'm already connected to OpenAI with my account, but let me show you how to set it up for yourself. You would just go to create new credential and then you're going to need an API key. In order to create that, go to platform.openai.com and log in. You will land on a page that looks like this, and what you'll need to do is go to the dashboard and then you would go to the navigation bar on the left and you'll see API keys. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.