botserver/docs/src/chapter-05/keyword-set-user.md

545 B
Raw Blame History

SET_USER Keyword

Syntax

SET_USER "user-id"

Parameters

  • "user-id" UUID string identifying the user.

Description

SET_USER updates the current sessions user identifier. This is useful when a dialog authenticates a user and wants to associate subsequent interactions with that users record.

Example (from auth.bas)

SET_USER "550e8400-e29b-41d4-a716-446655440000"
TALK "User authenticated."

After execution, all future bot messages in this session are linked to the specified user ID.