{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ru/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":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Шаг 1 (Получение токена):"]}," Отправьте идентификатор приложения и секретный ключ в ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/oauth2/token"]}," для получения временного ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Шаг 2 (Запуск задачи):"]}," Поместите токен в заголовок и сформируйте параметры, содержащие ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["строковый JSON"]},", чтобы запустить задачу облачного телефона."]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"предварительные-условия","__idx":1},"children":["Предварительные условия"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Прежде чем начать, убедитесь, что у вас есть следующая информация:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Учетные данные API"]}," (получите их из ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://id.morelogin.com/"},"children":["панели управления MoreLogin"]}," -> Управление API):"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Идентификатор приложения"]}," (т.е. client_id)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Секретный ключ"]}," (т.е. client_secret)"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://guide.morelogin.com/api-reference/open-api/open-api/authorization/paths/~1oauth2~1token/post"},"children":["Как получить авторизацию?"]}," ","2. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Идентификаторы ресурсов"]}," (получите из списка телефонных номеров в облаке и магазина шаблонов):"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Идентификатор телефона в облаке"]}," (только число)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Идентификатор шаблона"]}," (только число)"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$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":["Как получить?"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"импорт-рабочего-процесса-в-один-клик","__idx":2},"children":["Импорт рабочего процесса в один клик"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Для упрощения настройки мы подготовили для вас полный рабочий процесс n8n с двумя узлами. Вам не нужно вручную обрабатывать передачу токенов и сложное экранирование JSON."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Просто скопируйте приведенный ниже JSON-код и вставьте его (Ctrl+V) в n8n canvas:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n\"nodes\": [\n\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{\n\"name\": \"client_id\",\n\"value\": \"YOUR_APP_ID_HERE\"\n\n},\n\n{\n\"name\": \"client_secret\",\n\"value\": \"YOUR_SECRET_KEY_HERE\"\n\n},\n\n{\n\"name\": \"grant_type\",\n\"value\": \"client_credentials\"\n\n}\n\n]\n\n},\n\"options\": {}\n\n},\n\"id\": \"step_1_auth\",\n\"name\": \"Шаг 1: Получение токена\",\n\"type\": \"n8n-nodes-base.httpRequest\",\n\"typeVersion\": 4.1,\n\"position\": [\n460,\n300\n]\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{\n\"name\": \"Authorization\",\n\"value\": \"={{ 'Bearer ' + $json.data.access_token }}\"\n\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},\n\"options\": {}\n\n},\n\"id\": \"step_2_run_task\",\n\"name\": \"Шаг 2: Выполнить задачу\",\n\"type\": \"n8n-nodes-base.httpRequest\",\n\"typeVersion\": 4.1,\n\"position\": [\n680,\n300\n],\n\"dependencies\": {\n\"nodes\": [\n\n{\n\"node\": \"Шаг 1: Получить токен\",\n\"type\": \"main\",\n\"index\": 0\n}\n\n]\n}\n\n}\n],\n\"connections\": {\n\"Шаг 1: Получить токен\": {\n\"main\": [\n\n[\n\n{\n\"node\": \"Шаг 2: Выполнить задачу\",\n\"type\": \"main\",\n\"index\": 0\n}\n\n]\n\n]\n}\n}\n}```\n","lang":"json"},"children":[]}]},"headings":[{"value":"n8n","id":"n8n","depth":1},{"value":"Предварительные условия","id":"предварительные-условия","depth":2},{"value":"Импорт рабочего процесса в один клик","id":"импорт-рабочего-процесса-в-один-клик","depth":2}],"frontmatter":{"seo":{"title":"n8n"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ru/rparobotic-process-automation/04-integration/n8n","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}