#!/usr/bin/env python
# encoding: utf-8
from __future__ import unicode_literals
import openbot

CLIENT_ACCESS_TOKEN = "openbot"
HOST = "http://openbot.just4fun.site"
def main():
    bot = openbot.OpenBot(HOST,CLIENT_ACCESS_TOKEN)

    # session_id = "<SESSION ID, UNIQUE FOR EACH USER>"

    query = "你叫什么"

    response = bot.chat(query)

    print(response)
    print(response["answer"])


if __name__ == '__main__':
    main()
