Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Nextcloud Talk API

Nextcloud Talk API

Scheduled Pinned Locked Moved Nextcloud
7 Posts 3 Posters 1.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    wrote on last edited by andreasdueren
    #1

    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.

    1 Reply Last reply
    0
    • svtxS Offline
      svtxS Offline
      svtx
      wrote on last edited by svtx
      #2

      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-talk

      Edit: Sorry, just saw how old this post is... 😄

      1 Reply Last reply
      3
      • andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        wrote on last edited by
        #3

        Haha no worries yes I am successfully using the API by now even though not in this setup

        1 Reply Last reply
        1
        • V Offline
          V Offline
          vitalymp
          wrote last edited by
          #4

          Could you please briefly explain how you did that? We would like to do something similar.

          andreasduerenA 1 Reply Last reply
          2
          • V vitalymp

            Could you please briefly explain how you did that? We would like to do something similar.

            andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            wrote last edited by
            #5

            @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?

            1 Reply Last reply
            1
            • V Offline
              V Offline
              vitalymp
              wrote last edited by
              #6

              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.

              andreasduerenA 1 Reply Last reply
              0
              • V vitalymp

                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.

                andreasduerenA Offline
                andreasduerenA Offline
                andreasdueren
                wrote last edited by
                #7

                @vitalymp You can simply create a new user with some bot name and then make a POST call 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"
                  }
                }
                
                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search