Nextcloud Talk API
-
Does anyone here have experience with the nextcloud talk API? My goal is to send a post request from freescout to my n8n instance when an email is assigned and translate that there and send a message to the user in question via nextcloud talk.
For one I'm not even sure where the API key is being generated or read out.
-
Not an expert on it but this might get you started:
Authentication:
https://docs.n8n.io/integrations/builtin/credentials/nextcloud/Capabilities:
https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.nextcloud/API:
https://nextcloud-talk.readthedocs.io/en/latest/conversation/
https://nextcloud-talk.readthedocs.io/en/latest/chat/PHP API:
https://nextcloud-server.netlify.app/namespaces/ocp-talkEdit: Sorry, just saw how old this post is...

-
Haha no worries yes I am successfully using the API by now even though not in this setup
-
Could you please briefly explain how you did that? We would like to do something similar.
@vitalymp I'm sorry I replaced freescout with chatwoot a while ago and deleted the associated n8n workflow with it. Which part of the integration are you struggling with?
-
Hi, thank you for your quick reply.
I want to post my Google Business reviews to a Nextcloud Talk chat channel. I can retrieve the reviews from Google. However, I have no idea how to send this content to my Nextcloud.
Perplexity says I should set up a bot and call its API, but I'm not sure if that's the right approach.
I connected Nextcloud to N8N via OAuth2.
-
Hi, thank you for your quick reply.
I want to post my Google Business reviews to a Nextcloud Talk chat channel. I can retrieve the reviews from Google. However, I have no idea how to send this content to my Nextcloud.
Perplexity says I should set up a bot and call its API, but I'm not sure if that's the right approach.
I connected Nextcloud to N8N via OAuth2.
@vitalymp You can simply create a new user with some bot name and then make a
POSTcall to your nextcloud instance using that users basic auth credentials after recieving data with a webhook. Something like this:{ "nodes": [ { "parameters": { "method": "POST", "url": "https://cloud.tld.com/ocs/v2.php/apps/spreed/api/v4/chat/CHAT-ID", "authentication": "genericCredentialType", "genericAuthType": "httpBasicAuth", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "message", "value": "=Message content" } ] }, "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "OCS-APIRequest", "value": "true" }, { "name": "Content-Type", "value": "application/json" }, { "name": "Accept", "value": "application/json" } ] }, "options": {} }, "id": "3efc34ee-e77a-477f-9cbd-9e039f64e143", "name": "Post Message to NC Talk room", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 1872, 160 ], "credentials": { "nextCloudApi": { "id": "RQ8xpIKWFMblRfYZ", "name": "cloud.tld.com – bot" }, "httpHeaderAuth": { "id": "v09VrkQtu9eIAUEl", "name": "Header Auth account" }, "httpBasicAuth": { "id": "6ASiFBk1BEcktXcq", "name": "cloud.tld.com bot" } } }, { "parameters": { "path": "a907934a-19a1-4ced-b919-f1db35a4fa93", "options": {} }, "id": "f11e1143-0a6b-4867-abb2-f03a235e0ed0", "name": "Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 2, "position": [ 1424, 160 ], "webhookId": "a907934a-19a1-4ced-b919-f1db35a4fa93" } ], "connections": { "Webhook": { "main": [ [ { "node": "Post Message to NC Talk room", "type": "main", "index": 0 } ] ] } }, "pinData": {}, "meta": { "templateCredsSetupCompleted": true, "instanceId": "a382289a228a66b7e622210301ab5b6d8d06d93edb07378019866ea75d7e5793" } }