QAPlugin Adding custom AI
Adding custom AI using DialogFlow
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.
Use V1 for agents
- Log in to the site http://www.api.ai/
- Create a new agent. You can use "customer service" as the example application
- Test something basic.
The framework has something called "domains" what are basically pre defined AI components such as (in this case ) small talk.
- You can enable new domains giving you the ability to add more functionalities
- Keep in mind, you can test the domains, but most of them require a plan upgradehelp
- You can experiment and play around on the site. Once you are ready you can add this AI bot to your minecraft server!
- Click on the gear icon next to your agent
- Copy the CLIENT access token
- In the config.yml paste the access token under "question-settings.api-ai.client-access-token"
- Do not forget to enable api-ai as well
Learn from your players
You can use the API to learn from your players
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:
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