QAPlugin Adding custom AI

Dec 25, 2016
QAPlugin Adding custom AI
  • QAPlugin
    Adding custom AI using API.AI

    QAPlugin gives you the ability to use API.AI to create your own AI. Some quick information about API.AI... It is a framework used in Google Home, Slack and other bots/assistants.

    Unlike the standard "question"->"response" AI you can make in the plugin by default, this framework allows you to create more dynamic conversations and even allows you to contact web services to answer the questions.

    1. Log in to the site http://www.api.ai/
    2. Create a new agent. You can use "customer service" as the example application
      [​IMG]
    3. Test something basic.
      [​IMG]
      The framework has something called "domains" what are basically pre defined AI components such as (in this case ) small talk.
    4. You can enable new domains giving you the ability to add more functionalities
      [​IMG]
    5. Keep in mind, you can test the domains, but most of them require a plan upgradehelp
    6. You can experiment and play around on the site. Once you are ready you can add this AI bot to your minecraft server!
    7. Click on the gear icon next to your agent
      [​IMG]
    8. Copy the CLIENT access token
      [​IMG]
    9. In the config.yml paste the access token under "question-settings.api-ai.client-access-token"
    10. Do not forget to enable api-ai as well

    Learn from your players
    You can use the API to learn from your players
    [​IMG]
    API.ai will store all the questions and the frequency they are asked so you can add responses to them.

    Using user context
    Every time a player asks a question there will be a "context" created called "player"
    This context has several parameters you can use:

    • #player.username
    • #player.uuid
    • #player.location_x
    • #player.location_y
    • #player.location_z
    • #player.location_world

    [​IMG]
    Read more: https://docs.api.ai/docs/concept-contexts


    Read more at: https://docs.api.ai/docs/reference
    A php example can be found here: https://discuss.api.ai/t/webhook-in-php-example/229
  • Loading...
  • Loading...