Skip to main content

Claude/ChatGPT Prompt to Build a Customer Support Agent With Tools

Build a customer support chatbot with tool calling, human escalation, memory, and ticketing. Copy-ready agent spec for any SaaS product.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt has the model act as a senior conversational-AI engineer and specify a customer support agent tightly enough to build today. You provide the [product], the [tools] the agent can call, the [model_stack], and the [escalation_channel], and it returns concrete artifacts: a system prompt, tool schemas with rate limits, a memory design, escalation logic, a ticket payload, and guardrails — not vague advice.

The structure works because it separates the easy part (chat) from the parts teams underestimate. [tools] defines the agent's real capabilities and the JSON schemas it needs, [escalation_channel] drives the handoff path for frustrated or stuck users, and [model_stack] grounds the architecture in a concrete runtime. Asking for an ASCII diagram plus the full prompt and every tool schema forces a buildable spec instead of a wishlist. The memory design and guardrail layer cover the operational realities that decide whether a support agent stays trustworthy under real traffic.

When to use it

  • You're building a support chatbot wired to a real product backend, not a demo.
  • You need tool definitions with JSON schemas and rate limits on sensitive actions.
  • You want escalation logic that hands off to humans before the bot loops on hard tickets.
  • You need a memory design covering what to persist, summarise, and forget.
  • You want structured ticket payloads created in your CRM automatically.
  • You need guardrails for PII redaction, prompt injection, and tool-failure fallbacks.
  • You want a spec concrete enough to start building today rather than a strategy doc.

Example output

Expect an ASCII architecture diagram showing the agent, its [tools], memory, and the [escalation_channel]; then the full system prompt defining scope, tone, and refusal rules; then every tool schema with its JSON contract and rate limits. You'll also get the conversation-memory design covering what to persist, summarise, and forget, the escalation logic triggered by frustration signals, the structured ticket payload for the CRM, and the guardrail layer for PII, injection, and tool failures. It's a spec you can hand to a build, not a list of intentions.

Pro tips

  • List [tools] precisely (e.g. search_kb, lookup_order, create_ticket, escalate_to_human) — they define the agent's real power and shape every JSON schema.
  • Get the escalation logic right early, or the bot loops on hard tickets and burns trust before you notice.
  • Set [escalation_channel] to your actual destination (e.g. a Zendesk queue) so the handoff payload matches reality.
  • Match [model_stack] to what you'll deploy; it changes how tool calling and memory are wired.
  • Treat rate limits on sensitive [tools] as non-negotiable — an unthrottled create_ticket or order lookup is an abuse vector.
  • Ask the model to spell out the tool-failure fallback so the agent degrades gracefully instead of returning errors to customers.

Frequently Asked Questions

Does this prompt handle escalation to a human?
Yes, escalation is a first-class deliverable. It defines logic that detects frustration signals or unresolved issues and hands off to your `[escalation_channel]`, which the prompt's author calls the part teams most often underestimate.
What model and stack should I put in model_stack?
Use whatever you plan to deploy, such as Claude Sonnet on Node.js. The `[model_stack]` value grounds the architecture and affects how tool calling and conversation memory get wired into the agent.
Are the tools secured against abuse?
The prompt requires JSON schemas plus rate limits on sensitive tools, and guardrails for PII redaction and prompt-injection handling. An unthrottled tool like order lookup or ticket creation is treated as something to protect, not assume safe.
Does it create tickets in my CRM?
Yes. One deliverable is a structured ticket-creation payload for the CRM. Set your tools and escalation channel correctly so the payload shape matches what your ticketing system actually expects.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in AI Chatbot & Agent Building Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support