State Type: Closing

State Type: Closing

The Closing state is where the conversation ends. The agent says goodbye, performs any final wrap-up, and hangs up. It is the flow's exit — when the agent reaches a Closing state with no outbound transitions, the call is over.

What It Does

A Closing state runs a short closing prompt and then ends the call. Under the hood, it is marked with an end_conversation post-action, which signals the system to wrap up the audio session and flush any post-call actions (email, webhook, SMS, summary) once the agent finishes speaking.

Unlike a Transferring state, Closing does not connect the caller to anyone. The agent is the last voice the caller hears.

When to Use It

  • The caller's request has been fully handled (question answered, appointment booked, message taken).
  • The caller said goodbye or has clearly wrapped up.
  • The flow hit a dead end that does not warrant a transfer (e.g. after-hours, caller declined to provide info).
  • You want a branch of the flow to terminate politely instead of looping back to help.

Every flow should have at least one Closing state, even if it is rarely reached. It is the clean exit.

Writing the Description

  • Thank the caller. "Thanks for calling Acme" or "I appreciate you reaching out."
  • Recap one thing. If an action was taken, confirm it. "Your appointment is booked for Tuesday at 2 PM." This reassures the caller that the right thing happened.
  • Set expectation for follow-up. If a human is going to call them back, say so. "Someone from our team will reach out by end of day."
  • Keep it short. Two sentences is usually enough.
Example: 

Tools to Include

Closing states are typically tool-free. The agent just speaks the closing line and hangs up. The end_conversation post-action handles the hangup automatically — you do not need to add an explicit "End Call" tool.

One exception: if your flow uses a separate Execute Actions step to fire post-call notifications, make sure that step runs before the Closing state, not inside it. Once Closing fires, the conversation is over and further tool calls will not execute.

Info
The Closing state is where the agent's tone matters most. A warm, specific goodbye is the single biggest difference between "felt like a real conversation" and "felt like a bot." 

Common Mistakes

  • No Closing state. The call will still end eventually (the caller hangs up, or the session times out), but it feels abrupt. A real goodbye is worth the extra state.
  • Tool calls in Closing. By the time the flow is in Closing, the conversation is wrapping up. Put anything that needs to run — booking confirmations, info submissions — in the state before Closing, not inside it.
  • Reopening the conversation. A Closing prompt that says "is there anything else?" makes the closing ambiguous. If you want an "anything else" check, put it in the Assisting state and transition to Closing only when the caller says no.
    • Related Articles

    • State Type: Error Handling

      The Error Handling state is the recovery branch of your flow — where the agent goes when something did not go as expected. A caller spoke a language the agent does not understand, a tool returned an error, a required field was not captured, an ...
    • State Type: Assisting

      The Assisting state is the agent's general-purpose "stay and help" state. It is the default conversational state — broad in scope, liberal with tools, and the place most calls spend the majority of their time. What It Does Assisting is what it sounds ...
    • State based vs Prompt Engineering

      There are two ways to control how your AI Agent behaves on a call: 1. Write one long system prompt that tries to cover every situation or 2. Build a flow with states that change the agent's focus as the conversation moves forward. This article ...
    • State Calling Hours | OneCloud Support Portal

      Many countries regulate the hours during which businesses are allowed to contact consumers by phone. In some countries, such calling hours may also be regulated at the state level. To be compliant with such regulations during your outbound campaigns, ...
    • Building Conversation Flows

      A flow is the conversation blueprint for your AI Agent. It defines the stages of a phone call, what the agent does at each stage, which tools it can use, and when the conversation moves forward. Think of it like a flowchart: each box is a stage the ...