|
| 1 | +--- |
| 2 | +summary: "Nextcloud Talk support status, capabilities, and configuration" |
| 3 | +read_when: |
| 4 | + - Working on Nextcloud Talk channel features |
| 5 | +--- |
| 6 | +# Nextcloud Talk (plugin) |
| 7 | + |
| 8 | +Status: supported via plugin (webhook bot). Direct messages, rooms, reactions, and markdown messages are supported. |
| 9 | + |
| 10 | +## Plugin required |
| 11 | +Nextcloud Talk ships as a plugin and is not bundled with the core install. |
| 12 | + |
| 13 | +Install via CLI (npm registry): |
| 14 | +```bash |
| 15 | +clawdbot plugins install @clawdbot/nextcloud-talk |
| 16 | +``` |
| 17 | + |
| 18 | +Local checkout (when running from a git repo): |
| 19 | +```bash |
| 20 | +clawdbot plugins install ./extensions/nextcloud-talk |
| 21 | +``` |
| 22 | + |
| 23 | +If you choose Nextcloud Talk during configure/onboarding and a git checkout is detected, |
| 24 | +Clawdbot will offer the local install path automatically. |
| 25 | + |
| 26 | +Details: [Plugins](/plugin) |
| 27 | + |
| 28 | +## Quick setup (beginner) |
| 29 | +1) Install the Nextcloud Talk plugin. |
| 30 | +2) On your Nextcloud server, create a bot: |
| 31 | + ```bash |
| 32 | + ./occ talk:bot:install "Clawdbot" "<shared-secret>" "<webhook-url>" --feature reaction |
| 33 | + ``` |
| 34 | +3) Enable the bot in the target room settings. |
| 35 | +4) Configure Clawdbot: |
| 36 | + - Config: `channels.nextcloud-talk.baseUrl` + `channels.nextcloud-talk.botSecret` |
| 37 | + - Or env: `NEXTCLOUD_TALK_BOT_SECRET` (default account only) |
| 38 | +5) Restart the gateway (or finish onboarding). |
| 39 | + |
| 40 | +Minimal config: |
| 41 | +```json5 |
| 42 | +{ |
| 43 | + channels: { |
| 44 | + "nextcloud-talk": { |
| 45 | + enabled: true, |
| 46 | + baseUrl: "https://cloud.example.com", |
| 47 | + botSecret: "shared-secret", |
| 48 | + dmPolicy: "pairing" |
| 49 | + } |
| 50 | + } |
| 51 | +} |
| 52 | +``` |
| 53 | + |
| 54 | +## Notes |
| 55 | +- Bots cannot initiate DMs. The user must message the bot first. |
| 56 | +- Webhook URL must be reachable by the Gateway; set `webhookPublicUrl` if behind a proxy. |
| 57 | +- Media uploads are not supported by the bot API; media is sent as URLs. |
| 58 | +- The webhook payload does not distinguish DMs vs rooms; set `apiUser` + `apiPassword` to enable room-type lookups (otherwise DMs are treated as rooms). |
| 59 | + |
| 60 | +## Access control (DMs) |
| 61 | +- Default: `channels.nextcloud-talk.dmPolicy = "pairing"`. Unknown senders get a pairing code. |
| 62 | +- Approve via: |
| 63 | + - `clawdbot pairing list nextcloud-talk` |
| 64 | + - `clawdbot pairing approve nextcloud-talk <CODE>` |
| 65 | +- Public DMs: `channels.nextcloud-talk.dmPolicy="open"` plus `channels.nextcloud-talk.allowFrom=["*"]`. |
| 66 | + |
| 67 | +## Rooms (groups) |
| 68 | +- Default: `channels.nextcloud-talk.groupPolicy = "allowlist"` (mention-gated). |
| 69 | +- Allowlist rooms with `channels.nextcloud-talk.rooms`: |
| 70 | +```json5 |
| 71 | +{ |
| 72 | + channels: { |
| 73 | + "nextcloud-talk": { |
| 74 | + rooms: { |
| 75 | + "room-token": { requireMention: true } |
| 76 | + } |
| 77 | + } |
| 78 | + } |
| 79 | +} |
| 80 | +``` |
| 81 | +- To allow no rooms, keep the allowlist empty or set `channels.nextcloud-talk.groupPolicy="disabled"`. |
| 82 | + |
| 83 | +## Capabilities |
| 84 | +| Feature | Status | |
| 85 | +|---------|--------| |
| 86 | +| Direct messages | Supported | |
| 87 | +| Rooms | Supported | |
| 88 | +| Threads | Not supported | |
| 89 | +| Media | URL-only | |
| 90 | +| Reactions | Supported | |
| 91 | +| Native commands | Not supported | |
| 92 | + |
| 93 | +## Configuration reference (Nextcloud Talk) |
| 94 | +Full configuration: [Configuration](/gateway/configuration) |
| 95 | + |
| 96 | +Provider options: |
| 97 | +- `channels.nextcloud-talk.enabled`: enable/disable channel startup. |
| 98 | +- `channels.nextcloud-talk.baseUrl`: Nextcloud instance URL. |
| 99 | +- `channels.nextcloud-talk.botSecret`: bot shared secret. |
| 100 | +- `channels.nextcloud-talk.botSecretFile`: secret file path. |
| 101 | +- `channels.nextcloud-talk.apiUser`: API user for room lookups (DM detection). |
| 102 | +- `channels.nextcloud-talk.apiPassword`: API/app password for room lookups. |
| 103 | +- `channels.nextcloud-talk.apiPasswordFile`: API password file path. |
| 104 | +- `channels.nextcloud-talk.webhookPort`: webhook listener port (default: 8788). |
| 105 | +- `channels.nextcloud-talk.webhookHost`: webhook host (default: 0.0.0.0). |
| 106 | +- `channels.nextcloud-talk.webhookPath`: webhook path (default: /nextcloud-talk-webhook). |
| 107 | +- `channels.nextcloud-talk.webhookPublicUrl`: externally reachable webhook URL. |
| 108 | +- `channels.nextcloud-talk.dmPolicy`: `pairing | allowlist | open | disabled`. |
| 109 | +- `channels.nextcloud-talk.allowFrom`: DM allowlist (user IDs). `open` requires `"*"`. |
| 110 | +- `channels.nextcloud-talk.groupPolicy`: `allowlist | open | disabled`. |
| 111 | +- `channels.nextcloud-talk.groupAllowFrom`: group allowlist (user IDs). |
| 112 | +- `channels.nextcloud-talk.rooms`: per-room settings and allowlist. |
| 113 | +- `channels.nextcloud-talk.historyLimit`: group history limit (0 disables). |
| 114 | +- `channels.nextcloud-talk.dmHistoryLimit`: DM history limit (0 disables). |
| 115 | +- `channels.nextcloud-talk.dms`: per-DM overrides (historyLimit). |
| 116 | +- `channels.nextcloud-talk.textChunkLimit`: outbound text chunk size (chars). |
| 117 | +- `channels.nextcloud-talk.blockStreaming`: disable block streaming for this channel. |
| 118 | +- `channels.nextcloud-talk.blockStreamingCoalesce`: block streaming coalesce tuning. |
| 119 | +- `channels.nextcloud-talk.mediaMaxMb`: inbound media cap (MB). |
0 commit comments