text_received(msg: String, user_info: String, step_data: String) -> String

When the user sends a text message to the bot, the Host will call Wasm's text_received function, parse the return value, and return the result to the user.


  • msg - The original text message sent by the user
  • user_info - Slack user information, Json string {open_id: "Slack User Id", tenant_key: "Slack Workspace Identity", "name": "User Name"}
  • step_data - The step data of the previous chat between the user and the bot