Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .run/AssistantTalkBot.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<env name="APP_ID" value="talk_bot_ai" />
<env name="APP_PORT" value="10034" />
<env name="APP_SECRET" value="12345" />
<env name="APP_VERSION" value="3.0.2" />
<env name="NEXTCLOUD_URL" value="http://stable30.local" />
<env name="APP_VERSION" value="3.1.0" />
<env name="NEXTCLOUD_URL" value="http://stable31.local" />
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023-2025 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

FROM python:3.12-bookworm
FROM python:3.12-slim-bookworm

RUN \
apt-get update && \
Expand All @@ -25,7 +25,7 @@ RUN set -ex; \
rm -rf /tmp/frp /tmp/frp.tar.gz

COPY requirements.txt /
COPY healthcheck.sh /
COPY --chmod=775 healthcheck.sh /
COPY --chmod=775 start.sh /
ADD /src/ /app/

Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ help:
@echo " "
@echo " run installs $(APP_NAME) for Nextcloud Latest"
@echo " run30 installs $(APP_NAME) for Nextcloud 30"
@echo " run31 installs $(APP_NAME) for Nextcloud 31"
@echo " "
@echo " > Commands for manual registration of ExApp ($(APP_NAME) should be running!):"
@echo " "
@echo " register performs registration of running $(APP_NAME) into the 'manual_install' deploy daemon."
@echo " register30 performs registration of running $(APP_NAME) into the 'manual_install' deploy daemon."
@echo " register31 performs registration of running $(APP_NAME) into the 'manual_install' deploy daemon."
@echo " "


Expand All @@ -47,6 +49,12 @@ run30:
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register $(APP_ID) \
--info-xml https://raw.githubusercontent.com/nextcloud/$(APP_ID)/main/appinfo/info.xml

.PHONY: run31
run31:
docker exec master-stable31-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
docker exec master-stable31-1 sudo -u www-data php occ app_api:app:register $(APP_ID) \
--info-xml https://raw.githubusercontent.com/nextcloud/$(APP_ID)/main/appinfo/info.xml

.PHONY: register
register:
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
Expand All @@ -56,3 +64,8 @@ register:
register30:
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --wait-finish

.PHONY: register31
register31:
docker exec master-stable31-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
docker exec master-stable31-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --wait-finish
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@

## Nextcloud Assistant Talk Bot

**A talk bot using [`AppAPI`], Task Processing API, and Talk Bot API.**
**A talk bot using [`AppAPI`],
the [OCS TaskProcessing API],
and [Talk Bot API].**

The bot answers questions in chat based on the model set by Nextcloud Assistant.
The bot is capable of answering questions in [Nextcloud Talk] chat conversations
using the large language model set by [Nextcloud Assistant].

## How to install:

1. Install [`AppAPI`]
and set up a deploy daemon by following the [AppAPI instructions].
_(Automatically created with AIO)_
2. Go to the `Apps` menu in Nextcloud,
find this app (`Assistant Talk Bot`) in the `Tools` category,
find this app (`Assistant Talk Bot`) in the `AI` or `Tools` category,
and click `Deploy and Enable`.
3. In Nextcloud Talk,
open a conversation and enable the bot in `Conversation settings`.
Expand All @@ -25,4 +28,8 @@ The bot answers questions in chat based on the model set by Nextcloud Assistant.
<!-- Links -->

[`AppAPI`]: https://github.com/nextcloud/app_api
[OCS TaskProcessing API]: https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-taskprocessing-api.html
[Talk Bot API]: https://cloud-py-api.github.io/nc_py_api/reference/TalkBot.html
[Nextcloud Talk]: https://nextcloud.com/talk/
[Nextcloud Assistant]: https://nextcloud.com/assistant/
[AppAPI instructions]: https://docs.nextcloud.com/server/latest/admin_manual/exapps_management/AppAPIAndExternalApps.html
12 changes: 6 additions & 6 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<summary>Nextcloud Assistant Talk Bot</summary>
<description>
<![CDATA[
**A talk bot using [`AppAPI`](https://github.com/nextcloud/app_api), Task Processing API, and Talk Bot API.**
**A talk bot using [`AppAPI`](https://github.com/nextcloud/app_api), the [OCS TaskProcessing API](https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-taskprocessing-api.html), and [Talk Bot API](https://cloud-py-api.github.io/nc_py_api/reference/TalkBot.html).**

The bot is capable of answering questions in chat depending on the model set by Nextcloud Assistant.
The bot is capable of answering questions in Nextcloud Talk chat conversations using the large language model set by Nextcloud Assistant.

**The [`AppAPI`](https://github.com/nextcloud/app_api) application needs to be enabled to install and use this bot.**
**The [`AppAPI`](https://apps.nextcloud.com/apps/app_api), [Nextcloud Talk](https://apps.nextcloud.com/apps/spreed), and [Nextcloud Assistant](https://apps.nextcloud.com/apps/assistant) apps needs to be enabled to install and use this bot.**
]]></description>
<version>3.0.2</version>
<version>3.1.0</version>
<licence>agpl</licence>
<author mail="[email protected]" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author>
Expand All @@ -28,13 +28,13 @@ The bot is capable of answering questions in chat depending on the model set by
<bugs>https://github.com/nextcloud/talk_bot_ai/issues</bugs>
<repository type="git">https://github.com/nextcloud/talk_bot_ai.git</repository>
<dependencies>
<nextcloud min-version="30" max-version="31"/>
<nextcloud min-version="30" max-version="32"/>
</dependencies>
<external-app>
<docker-install>
<registry>ghcr.io</registry>
<image>nextcloud/talk_bot_ai</image>
<image-tag>3.0.2</image-tag>
<image-tag>3.1.0</image-tag>
</docker-install>
</external-app>
</info>