apinf / apibot.ai

Turn OpenAPI specs to conversations with Developers in chat based environments.
http://apibot.ai
Other
2 stars 3 forks source link

Provide answer to "how do I add Object?" #7

Open philippeluickx opened 7 years ago

philippeluickx commented 7 years ago

We need to investigate more "natural interaction" with Swagger. E.g. with Petstore, people can ask "How do I add a Pet" or "How do I delete a User".

This can be done by defining entities in api.ai for all methods (GET, POST,...) and defining all synonyms (POST = add, update, create,...). Then in the backend, we have the 2 elements we need (e.g. POST and object = Pet), so with some logic we can deduce the correct operation.