n8n Workflow: GPT-4o Text Generation via OpenAI API
n8n Workflow: GPT-4o Text Generation via OpenAI API
Regular price
£14.99
Regular price
£14.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
âš¡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n Workflow: GPT-4o Text Generation via OpenAI API
Regular price
£14.99
Regular price
£14.99
Sale price
Unit price
/
per
Generate GPT-4o text in n8n using the OpenAI-compatible TokenWorks Chat Completions API
Turn any prompt into ready-to-use text by running an n8n workflow that sends your input to TokenWorks’ OpenAI-compatible /v1/chat/completions endpoint and returns the GPT-4o (or another model) response instantly.
What this workflow does
- Builds a prompt inside the workflow using the Set node (a plain text string that defines what you want the model to answer).
- Sends an HTTP POST request to TokenWorks (token8341.com) at /v1/chat/completions.
-
Maps the prompt into the
messagesarray for a Chat Completions style request. -
Sets the model field to
gpt-4o(you can change this to use a different model by updating the request body). - Returns the generated chat completion from TokenWorks as the workflow output.
Use cases
- Create draft marketing copy, product descriptions, or landing page sections from a single prompt in an n8n automation.
- Generate structured text for internal documentation or knowledge base articles.
- Produce response templates (e.g., FAQ answers or support replies) based on input context.
- Use GPT-4o text generation as a building block inside larger n8n automations for SaaS operations.
Technical details
- Category: n8n automation workflow
- Nodes used: Set, HTTP Request
-
API integration: TokenWorks OpenAI-compatible Chat Completions endpoint
/v1/chat/completions -
Authentication: add an n8n HTTP Header Auth credential (e.g.,
Authorization: Bearer <TOKENWORKS_API_KEY>) and select it in the HTTP request step - Output: the workflow returns the TokenWorks generated chat completion response
Setup tip: create a TokenWorks account, generate an API key, update the workflow prompt, and confirm the model you want (default: gpt-4o).
