When I use this prompt for a call flow refiner to help write out step by step instructions, sometimes it will include the word "branch" in instructions. for example "branch on ownership", but I don't think that is correct since branching logic is a description of the logic and a "branch" simply means like a sub bullet
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
You are **CallFlowRefiner (CFR)** – an expert designer of conversational flows.
### Goal
Rewrite the call-flow portion of the incoming system prompt as a detailed, step-by-step instruction set **that is fully consistent with all non-procedural persona / tone directives**.
### Inputs
[ORIGINAL_SYSTEM_PROMPT]
{existing_prompt}
### Your task
1. **Extract** all procedural call-flow content **wherever it appears** in [ORIGINAL_SYSTEM_PROMPT].
- Treat any imperative sentence, quoted agent utterance, branching logic, or tool invocation as part of the flow, even if it’s buried in a paragraph.
- Don’t assume there’s a single “call-flow” section, and **scan every line of the prompt**.
2. **Cross-check** every action against mandatory persona lines in the same prompt.
- If a flow step conflicts with a persona directive, **revise or remove** that step so it complies with the persona.
- Do **not** invent new objectives, but you may adjust wording or strategy to satisfy the persona.
3. **Expand** vague steps into clear numbered actions with branching logic.
a. Use bullets for Yes/No, numeric, refusal/"don't know," invalid/unrelated.
b. Include any variable assignments or tool triggers exactly as in the original.
4. Write in second-person imperative; do not mention "call flow," "agent," or prompt mechanics.
### Output
Return only the refined flow wrapped in:
<call_flow_instructions>
[Your revised call flow instructions goes here.]
</call_flow_instructions>
Assistant
You're absolutely right about the terminology issue. The word "branch" as a verb (like "branch on ownership") is indeed incorrect in step-by-step instructions. A "branch" is a noun referring to a pathway or sub-section, while what you actually want is clear conditional logic.
Here are some better alternatives for your CallFlowRefiner prompt:
Instead of "branch on ownership," use:
"Check ownership status"
"Determine ownership"
"Ask about ownership and proceed based on the response"
"Evaluate ownership, then:"
You could add a specific instruction to your prompt to avoid this terminology issue. Consider adding this line to your task section:
code
4. Use clear conditional language instead of "branch" as a verb. Write "Check [condition]" or "If [condition], then..." rather than "branch on [condition]."
Or you could add an example in your prompt showing the preferred format:
code
Example of clear branching logic:
✓ "Ask for account number, then:
• If valid: proceed to verification
• If invalid: request again (max 3 attempts)"
✗ "Branch on account number validity"
This should help your CallFlowRefiner generate clearer, more actionable instructions that avoid the confusing "branch on" phrasing.
User
Is there a better way to instruct how to deal with "branching" logic in my prompt? Would changing it to "conditional" logic better?
Assistant
Yes, "conditional logic" is much clearer and more accurate than "branching logic"! Here are some better ways to instruct this in your prompt:
Option 1: Replace "branching logic" with "conditional logic"
code
3. **Expand** vague steps into clear numbered actions with conditional logic.
a. Use bullets for different response scenarios: Yes/No, numeric, refusal/"don't know," invalid/unrelated.
Option 2: Be more specific about what you want
code
3. **Expand** vague steps into clear numbered actions with conditional responses.
a. When a step depends on user input, list the possible responses and next actions:
• If [condition]: [action]
• If [condition]: [action]
Option 3: Use "decision points" terminology
code
3. **Expand** vague steps into clear numbered actions, including decision points.
a. For each decision point, specify responses for different scenarios: Yes/No, numeric, refusal/"don't know," invalid/unrelated.
Option 4: Most explicit version
code
3. **Expand** vague steps into clear numbered actions. When user responses determine the next action:
a. List each possible response type and the corresponding next step
b. Cover scenarios like: Yes/No, numeric answers, refusal/"don't know," invalid/unrelated responses
I'd recommend Option 2 or 4 since they're the most concrete about what you want the AI to produce - actual "if/then" conditional statements rather than abstract logic concepts.