# SDKs and templates

{% embed url="<https://github.com/k-ai-Documentation/k-ai-Documentation>" %}

We offer SDKs in JavaScript, PHP, and Python to simplify API integration. Code examples for each language's SDK demonstrate common use cases and are available in the respective subrepositories. These SDKs streamline interaction with our API endpoints, making queries easier. Check the subrepositories for examples :

|     SDK    |                             folder                            | branch SDK version (update) |
| :--------: | :-----------------------------------------------------------: | :-------------------------: |
| Javascript | [javascript](https://github.com/k-ai-Documentation/sdk-js-ts) |      version 2.0 (2025)     |
|   Python   |   [python](https://github.com/k-ai-Documentation/sdk-python)  |      version 2.0 (2025)     |
|    Ruby    |     [ruby](https://github.com/k-ai-Documentation/sdk-ruby)    |         main (2025)         |
|     PHP    |      [PHP](https://github.com/k-ai-Documentation/sdk-php)     |    version 2.0 (Nov 2024)   |

### Templates

We also provide a set of partial templates that demonstrate how to use some functions of the K-ai SDKs to interact with K-ai service in different languages.

<table><thead><tr><th width="295" align="center">Senario</th><th width="158" align="center">Search </th><th width="146" align="center">Chatbot</th><th align="center">Audit</th></tr></thead><tbody><tr><td align="center"><strong>React JS</strong></td><td align="center"><a href="https://github.com/k-ai-Documentation/react-demo">Search</a></td><td align="center"><a href="https://github.com/k-ai-Documentation/vue-demo-chatbot">Chatbot</a></td><td align="center"><a href="https://github.com/k-ai-Documentation/k-ai-Documentation/blob/main/vuesearchurl">Audit</a></td></tr><tr><td align="center"><strong>Vue JS</strong></td><td align="center"><a href="https://github.com/k-ai-Documentation/vue-demo">Search</a></td><td align="center"><a href="https://github.com/k-ai-Documentation/vue-demo-chatbot">Chatbot</a></td><td align="center"><a href="https://github.com/k-ai-Documentation/vue-demo-km-audit">Audit</a></td></tr><tr><td align="center"><strong>Microsoft Copilot Studio</strong> </td><td align="center"><a href="https://github.com/k-ai-Documentation/streamlit-demo">Search</a></td><td align="center"></td><td align="center"></td></tr><tr><td align="center"><strong>Streamlit (Python)</strong></td><td align="center"><a href="https://github.com/k-ai-Documentation/kai-chatbot-microsoft-copilot-studio">Search</a></td><td align="center"></td><td align="center"></td></tr></tbody></table>

{% hint style="info" %}
**For a all-in-one template, with all functionalities ready-to-use, and a customized interface following your brand identity, don't hesitate to contact us !**
{% endhint %}


---

# 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://k-ai.gitbook.io/knowledge-ai/api/sdks.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.
