context

  • Output field: Returns the current context.

Description

This element return the current context, which is the last sentence in the previous message given by robot by default, or anything defined by set-context.

<context/>
<context>index</context>

Parameters

index

1 means the current context. 2 means the previous context, and so on. When the index is 1, it can be omitted.

Examples

Example 1. The current context

    • What did you say
    • I said "<context/>."
    • What is your favorite color?
    • Azure.
    • What did you say?
    • I said "Azure."

Notes

  • Where the conversation just begins, the context might be empty.