> For the complete documentation index, see [llms.txt](https://cloudinary.gitbook.io/a-modern-java-pet-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cloudinary.gitbook.io/a-modern-java-pet-store/shazam-for-pets/the-new-ux-with-ai.md).

# The new UX with AI

I was inspired by Shazam application for music. Alike with Shazam for music one could point a smart phone on a pet, take a picture and get the name / breed of an animal, with the price quote from our pet store.

How to do it? First I need to classify what is on the picture. The IBM Watson Visual Recognition service is pretty awesome in classification of the animals. There is a quite robust classification of dogs, with their breeds. There are other animals classifiers as well. I need an[http://bluemix.net](http://bluemix.net/) IBM Cloud account, and I need to provision the Watson Visual Recognition service for that. That is easy.

Some time ago I have created a selfie app for Android (you can get the <https://github.com/blumareks/cloudinary-watson/tree/master/lab2>← Smart Selfie app here), so I reused the same code tailoring it for the purpose of our Shazam for pets AI powered app. The Android app GitHub is here: <https://github.com/blumareks/2018-petstore-android>

In addition to the IBM Watson Visual Recognition, I added <https://console.bluemix.net/catalog/services/text-to-speech>→IBM Watson Text to Speech service — so kids could get the information faster without reading it (they love Voice UI I noticed).

Finally you need to copy the above mentioned credentials from those Watson services, and paste them in the credentials.xml file of this Android app.

Please visit my GitHub repo to learn more and see the videos on how to do it:<https://github.com/blumareks/2018-petstore>

Please follow me on the twitter:<https://twitter.com/blumareks>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cloudinary.gitbook.io/a-modern-java-pet-store/shazam-for-pets/the-new-ux-with-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
