{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"n8n","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"n8n","__idx":0},"children":["n8n"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Step 1 (Get Token):"]}," Send App ID and Secret to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/oauth2/token"]}," to obtain a temporary ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Step 2 (Run Task):"]}," Put the Token in the Header and construct parameters containing ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Stringified JSON"]}," to trigger the cloud phone task."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you begin, please make sure you have the following information ready:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Credentials"]}," (Get from ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://id.morelogin.com/"},"children":["MoreLogin Dashboard"]}," -> API Management):",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["App ID"]}," (i.e., client_id)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Secret Key"]}," (i.e., client_secret)"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://guide.morelogin.com/api-reference/open-api/open-api/authorization/paths/~1oauth2~1token/post"},"children":["How to get Authorization?"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Resource IDs"]}," (Get from the cloud phone list and template marketplace):",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cloud Phone ID"]}," (numeric only)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Template ID"]}," (numeric only)"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://guide.morelogin.com/api-reference/open-api/open-api/cloud-phoneschedules-management/paths/~1cloudphone~1rpa~1oncetask~1save/post"},"children":["How to get?"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"one-click-workflow-import","__idx":2},"children":["One-Click Workflow Import"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To simplify configuration, we have packaged a complete n8n dual-node workflow for you. You don't need to manually handle Token passing and complex JSON escaping."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Simply copy the JSON code below and paste it (Ctrl+V) into the n8n canvas:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"nodes\": [\n    {\n      \"parameters\": {\n        \"method\": \"POST\",\n        \"url\": \"https://api.morelogin.com/oauth2/token\",\n        \"sendBody\": true,\n        \"contentType\": \"json\",\n        \"bodyParameters\": {\n          \"parameters\": [\n            {\n              \"name\": \"client_id\",\n              \"value\": \"YOUR_APP_ID_HERE\"\n            },\n            {\n              \"name\": \"client_secret\",\n              \"value\": \"YOUR_SECRET_KEY_HERE\"\n            },\n            {\n              \"name\": \"grant_type\",\n              \"value\": \"client_credentials\"\n            }\n          ]\n        },\n        \"options\": {}\n      },\n      \"id\": \"step_1_auth\",\n      \"name\": \"Step 1: Get Token\",\n      \"type\": \"n8n-nodes-base.httpRequest\",\n      \"typeVersion\": 4.1,\n      \"position\": [\n        460,\n        300\n      ]\n    },\n    {\n      \"parameters\": {\n        \"method\": \"POST\",\n        \"url\": \"https://api.morelogin.com/cloudphone/rpa/onceTask/save\",\n        \"sendHeaders\": true,\n        \"headerParameters\": {\n          \"parameters\": [\n            {\n              \"name\": \"Authorization\",\n              \"value\": \"={{ 'Bearer ' + $json.data.access_token }}\"\n            }\n          ]\n        },\n        \"sendBody\": true,\n        \"contentType\": \"json\",\n        \"bodyParameters\": {\n          \"parameters\": [\n            {\n              \"name\": \"cloudPhoneId\",\n              \"value\": 1234567890\n            },\n            {\n              \"name\": \"templateId\",\n              \"value\": 1678347487160256\n            },\n            {\n              \"name\": \"scheduleName\",\n              \"value\": \"n8n-Auto-Task\"\n            },\n            {\n              \"name\": \"description\",\n              \"value\": \"Triggered via n8n\"\n            },\n            {\n              \"name\": \"templateParameter\",\n              \"value\": \"={{ JSON.stringify({\\n    \\\"Video Caption\\\": \\\"My Automation Video\\\",\\n    \\\"AI Label\\\": true,\\n    \\\"Product Id\\\": 1001,\\n    \\\"Get Leads\\\": false,\\n    \\\"Comment\\\": \\\"Great content!\\\"\\n}) }}\"\n            }\n          ]\n        },\n        \"options\": {}\n      },\n      \"id\": \"step_2_run_task\",\n      \"name\": \"Step 2: Run Task\",\n      \"type\": \"n8n-nodes-base.httpRequest\",\n      \"typeVersion\": 4.1,\n      \"position\": [\n        680,\n        300\n      ],\n      \"dependencies\": {\n        \"nodes\": [\n          {\n            \"node\": \"Step 1: Get Token\",\n            \"type\": \"main\",\n            \"index\": 0\n          }\n        ]\n      }\n    }\n  ],\n  \"connections\": {\n    \"Step 1: Get Token\": {\n      \"main\": [\n        [\n          {\n            \"node\": \"Step 2: Run Task\",\n            \"type\": \"main\",\n            \"index\": 0\n          }\n        ]\n      ]\n    }\n  }\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"n8n","id":"n8n","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"One-Click Workflow Import","id":"one-click-workflow-import","depth":2}],"frontmatter":{"seo":{"title":"n8n"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/rparobotic-process-automation/04-integration/n8n","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}