-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4870 from RasaHQ/tracker-sessions
Tracker sessions
- Loading branch information
Showing
42 changed files
with
1,510 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Added conversation sessions to trackers. | ||
|
||
A conversation session represents the dialog between the assistant and a user. | ||
Conversation sessions can begin in three ways: 1. the user begins the conversation | ||
with the assistant, 2. the user sends their first message after a configurable period | ||
of inactivity, or 3. a manual session start is triggered with the ``/session_start`` | ||
intent message. The period of inactivity after which a new conversation session is | ||
triggered is defined in the domain using the ``session_expiration_time`` key in the | ||
``session_config`` section. The introduction of conversation sessions comprises the | ||
following changes: | ||
|
||
- Added a new event ``SessionStarted`` that marks the beginning of a new conversation | ||
session. | ||
- Added a new default action ``ActionSessionStart``. This action takes all | ||
``SlotSet`` events from the previous session and applies it to the next session. | ||
- Added a new default intent ``session_start`` which triggers the start of a new | ||
conversation session. | ||
- ``SQLTrackerStore`` and ``MongoTrackerStore`` only retrieve | ||
events from the last session from the database. | ||
|
||
|
||
.. note:: | ||
|
||
The session behaviour is disabled for existing projects, i.e. existing domains | ||
without session config section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.