# Sugar Cam Tutorial: KittenBlock AI

### KittenBlock Programming

Add the Sugar Cam Extension.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FjbdGTjbzh4kTNGHMqtwm%2Fcam_ai1.png?alt=media&#x26;token=7ae77aa8-a130-4704-90af-9c584eeebfa2" alt=""><figcaption></figcaption></figure>

Both the computer and Sugar Cam need to connect to the same WiFi network.

Add the following blocks and fill in the IP address, click the block to show the video feed.

<div><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FGAXWxLqpMgyyzwOZlpGk%2Fcam_kb4.png?alt=media&#x26;token=2020ba0d-cbf3-44ed-a743-6d494a192ed1" alt=""><figcaption></figcaption></figure> <figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FEr5dnvG5rPrKVJONVrgV%2Fcam_ai2.png?alt=media&#x26;token=7aca320b-7e13-4407-9e6c-23e18c994a66" alt=""><figcaption></figcaption></figure></div>

After successfully getting the video feed from Sugar Cam, you can combine it with the functions from the AI extensions.

{% content-ref url="/pages/S76A6ZYgBdsokHT1ghnb" %}
[Broken mention](broken://pages/S76A6ZYgBdsokHT1ghnb)
{% endcontent-ref %}

<div><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F1bpdI54wMY0EJVwjYc2b%2Fcam_ai3.png?alt=media&#x26;token=44b7048f-7e7d-493f-bddc-25394894025d" alt=""><figcaption></figcaption></figure> <figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fs8WD3AxwpEYsxT8yORB8%2Fcam_ai4.png?alt=media&#x26;token=dcef297b-6a35-4bec-aa17-0aafc9cef7a7" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: 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:

```
GET https://sharinghub-eng.kittenbot.hk/functional_module/sugar/cam/commandprocessing/kittenblockai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
