set

http://api.brainshop.ai/set?bid=[bid]&key=[key]&uid=[uid]&in=[input_msg]&out=[output_msg]

Description

This API accepts a chat message pair and set context to [output_msg] for the following chat request.

Parameters

  • bid: The brain ID.
  • key: The access key for the brain.
  • uid: The ID you assign to end user.
  • in: The message from user.
  • out: The message send to user.

Return Values

This API returns a plain text of "ok".