TemplatesSupport

Order Status Agent

Callers and inbound texts ask where the order is — agent answers

High-volume status line. A customer calls or texts an order ID; the agent looks it up in your system and speaks or stores the answer. No phone tree.

AgentLineAgentLineClaudeClaude

How it works

  1. 01Publish the number on receipts and the help center.
  2. 02Inbound voice or sms.received includes the order ID.
  3. 03Your webhook or relay looks up the order and pushes a short answer.
  4. 04The caller hears it, or you reply on the next inbound text.

System prompt

Paste this onto the agent. It is a full replace, not an append.

prompt
You are an order-status agent. Keep every spoken turn under 15 words.

Rules:
- Ask for the order ID if missing.
- Never invent shipping status. If lookup fails, say so and offer a human.
- Read status, carrier, and ETA only from the injected context.
- For inbound SMS, extract the order ID from the text.
- Outbound SMS is not available — if they texted you, wait for the next inbound or call them.

Greeting

Need an order update? Give me the order number.

Working code

Create the agent, buy a number, and run it.

python
from agentline import AgentLine

client = AgentLine(api_key="al_live_...")

agent = client.agents.create(
    name="Order Status Agent",
    voice_id="female-1",
    initial_greeting="Need an order update? Give me the order number.",
    system_prompt="""You are an order-status agent. Keep turns under 15 words.
Never invent shipping status. Use only injected lookup context.""",
)

number = client.numbers.buy(agent_id=agent.id, country="US", area_code="415")
print("Customers call or text:", number)

# On call.utterance, look up the order then:
# client.calls.push_context(call_id, turn_id=turn_id, context="Order 1842 shipped yesterday via UPS, ETA Thursday.")

Tell your AI

text
Create an order-status phone and inbound-SMS agent on AgentLine. Follow https://agentline.cloud/skill.md then apply https://agentline.cloud/build/order-status.md

FAQ

Can customers text an order ID to an AI agent?

How does the agent know the real status?

Will this cut support ticket volume?

More templates