end_session
Ends the session and gives back the acts that worked as a draft macro, which it can save for you to review.
Details #
The acts that worked, in order, become do steps with the session's app as a frontApp condition and no trigger. A read is kept only when a later act used what it read; otherwise it is dropped. Without saveAs the draft comes back in the answer. With saveAs it is saved the way create_macro saves: disabled, not exposed to agents, in the group Agent, with the intent as its description, for you to review in Switchboard. You can also end a session yourself at any time (the Stop button, or Esc); an agent can still call end_session afterwards to get the draft of what happened.