How to write a goal

A goal tells your AI agent what to do. For example: “If someone asks for a refund, ask for their order number.” Write it however it comes to you. These habits make what you mean clearest.


Say when, then what to do

Keep each condition with everything it applies to, on one line. For example:

  • Instead of “Handle refunds properly.”, write “If someone asks for a refund, ask for their order number.”
  • Instead of “Be helpful about delivery.”, write “When someone asks about delivery, say we deliver within 10 km.”

A situation alone isn’t an instruction. Say what your AI agent should do when it happens.

Be specific

Name the thing to ask for, say or do. For example, “Ask for their 10-digit account number” works better than “ask for their account info”.

Use “always” and “never” only when you mean them

Without a condition, a rule can apply throughout conversations on the channels you select. Examples:

  • Always use the customer’s first name.
  • Never promise a delivery date.

If you keep adding “never” lines to fix the same problem, rewrite the instruction that caused it.

Use steps only when the order matters

Rules tell your AI agent how to respond. Steps describe actions in order. A rule in a goal with steps only applies when that goal is handling the conversation, so put a “when someone says this, do that” line in a goal of its own.

Keep business facts out of the goal

Put your prices, hours and policies in Knowledge, where you add business information. To look up or change orders, connect an app that supports that action.

Two rules can pull against each other. For example, “offer a credit for billing problems” and “pass every billing problem to the team” can conflict. If one rule should only apply sometimes, say when.

Review the goal

Before you create the goal, compare it with what you asked for.

  • Check that every step keeps its condition. Example of a step after a longer instruction was split: “When a customer asks to cancel: refund the payment.”
  • Check the amounts and who must approve. Example: “Refund up to $50 without asking me” allows refunds up to 50 in the order’s currency and waits for your team’s approval above that. A permission with another condition, a named currency like CAD, several records or a deletion still requires approval.
  • Read “What Chirpedly can’t do”. Check what was left out and why. If part of a sentence wasn’t understood, the whole sentence is left out.
  • Check that anything your team must do by hand is recorded for them, without saying it’s done.
  • Correct the goal before you continue.

Test it

Before you rely on a goal, try it yourself on a channel it runs on, the way a customer would. Use typical and unusual requests. For Phone, call your number and listen.

See how Chirpedly works or browse use cases.