ChatGPT helps agencies speed up copywriting, research, and client communication. This guide shows you how to set up the API, craft prompts, and embed AI into everyday workflows. Follow each step, copy the code blocks, and watch your team’s output grow.
Visit platform.openai.com and register with your agency email. Verify the account and enable two‑factor authentication.
Use a secret manager such as 1Password, AWS Secrets Manager, or dotenv for local development.
# .env file
OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXXXXXX
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY"
If you receive a JSON list of models, the setup works.
Save a base system prompt in a constant. This keeps tone and style consistent across projects.
const BASE_SYSTEM_PROMPT = `You are a senior copywriter for a digital agency.
Write in a professional, concise tone.
Follow the brand guide:
- Voice: confident, friendly
- Keywords: {{keywords}}
- Length: {{length}}`;
Insert keywords and length dynamically.
async function generateOutline(topic, keywords) {
const response = await fetch("https://api.openai.com/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.OPENAI_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "gpt-4o-mini",
messages: [
{role: "system", content: BASE_SYSTEM_PROMPT.replace("{{keywords}}", keywords).replace("{{length}}", "800 words")},
{role: "user", content: `Create a detailed outline for a blog about "${topic}" using the keywords above.`}
]
})
});
const data = await response.json();
return data.choices[0].message.content;
}
Add a language instruction at the start of the user message.
{role:"user", content:"Write a 300‑word meta description in Spanish for a SaaS landing page about project management."}
agency-chatgpt/
├─ .env
├─ src/
│ ├─ prompts.js // system prompts
│ ├─ api.js // wrapper around OpenAI
│ ├─ tasks/
│ │ ├─ blog.js
│ │ └─ adcopy.js
│ └─ index.js // CLI entry point
└─ README.md
export async function chat(messages, model="gpt-4o-mini") {
const res = await fetch("https://api.openai.com/v1/chat/completions", {
method:"POST",
headers:{
"Authorization": `Bearer ${process.env.OPENAI_API_KEY}`,
"Content-Type":"application/json"
},
body:JSON.stringify({model, messages})
});
const json = await res.json();
if (!res.ok) throw new Error(json.error.message);
return json.choices[0].message.content;
}
Run node src/tasks/blog.js "AI trends 2025" "AI, trends, 2025" to get a full draft.
Install the official OpenAI integration from Notion Marketplace. Use the “/GPT‑4” block to call your agency‑specific system prompt stored in a Notion database.
Create a Zap:
Install “ChatGPT – EasyCode” from the VS Code marketplace. Configure the extension to read the OPENAI_API_KEY from your environment. Use Ctrl+Shift+P → “ChatGPT: New Prompt”.
| Feature | ChatGPT (OpenAI) | Claude (Anthropic) | Gemini (Google) |
|---|---|---|---|
| Model variety | gpt‑4o, gpt‑4o‑mini, gpt‑3.5‑turbo | claude‑3‑haiku, claude‑3‑sonnet | gemini‑1.5‑flash, gemini‑1.5‑pro |
| Pricing (per 1M tokens) | $2.50 in / $10 out (gpt‑4o) | $3.00 in / $15 out (haiku) | $0.75 in / $2.50 out (flash) |
| Latency | ≈450 ms (o‑mini) | ≈650 ms | ≈400 ms (flash) |
| Multilingual support | 100+ languages | 90+ languages | 100+ languages |
| Enterprise data isolation | OpenAI Dedicated, Azure OpenAI | Anthropic Dedicated | Google Cloud Vertex AI |
| Tooling ecosystem | Zapier, Notion, VS Code, Slack plugins | Zapier, Make, Slack | Google Workspace add‑ons, Vertex AI pipelines |
Create a dedicated OpenAI API key, store it in a secret manager, and wrap the calls in a reusable function that logs prompts and responses for audit.
Yes. By adding a language tag in the system prompt (e.g., “Write in French”) you can receive high‑quality, keyword‑rich copy in over 20 languages.
As of 2024, GPT‑4o costs $2.50 per 1M input tokens and $10 per 1M output tokens. A 10‑page blog post (≈1,500 words) usually consumes ~2,000 input and 3,000 output tokens, costing less than $0.05.
Use the OpenAI dedicated instance or Azure OpenAI with data isolation. Never send personally identifiable information unless you have explicit consent.
Zapier, Make (Integromat), Notion AI, and the official OpenAI plugins for VS Code and Slack provide out‑of‑the‑box integration.
Integrating ChatGPT into agency workflows saves time and improves consistency. Follow the steps, adapt the prompts, and measure results. The more you experiment, the more value you’ll unlock for clients.