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.
How it works
- 01Publish the number on receipts and the help center.
- 02Inbound voice or sms.received includes the order ID.
- 03Your webhook or relay looks up the order and pushes a short answer.
- 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.
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.Working code
Create the agent, buy a number, and run it.
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
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