{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/es/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":["Paso 1 (Obtener token):"]}," Envía el ID de la aplicación y el secreto a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/oauth2/token"]}," para obtener un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]}," temporal."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Paso 2 (Ejecutar tarea):"]}," Incluye el token en el encabezado y crea parámetros con ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["JSON en formato de cadena"]}," para activar la tarea del teléfono en la nube."]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"requisitos-previos","__idx":1},"children":["Requisitos previos"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Antes de comenzar, asegúrese de tener lista la siguiente información:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credenciales de API"]}," (Obténgalas en ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://id.morelogin.com/"},"children":["Panel de MoreLogin"]}," -> Administración de API):"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ID de la aplicación (p. ej., client_id)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Clave secreta (p. ej., 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":["¿Cómo obtener la autorización?"]}," ","2. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ID de recursos"]}," (Obténgalos de la lista de teléfonos en la nube y del mercado de plantillas):"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ID de teléfono en la nube (solo numérico)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ID de plantilla (solo numérico)"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["[Cómo obtener la autorización] ",{"$$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":["Obtener?"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"importación-de-flujo-de-trabajo-con-un-solo-clic","__idx":2},"children":["Importación de flujo de trabajo con un solo clic"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para simplificar la configuración, hemos empaquetado un flujo de trabajo completo de doble nodo n8n. No es necesario gestionar manualmente el paso de tokens ni el escape JSON complejo."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Simplemente copia el código JSON a continuación y pégalo (Ctrl+V) en el lienzo de n8n:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n\"nodes\": [\n{\n\"parameters\": {\n\"method\": \"POST\",\n\n\"url\": \"https://api.morelogin.com/oauth2/token\",\n\n\"sendBody\": true,\n\n\"contentType\": \"json\",\n\n\"bodyParameters\": {\n\"parameters\": [\n{\n\"name\": \"client_id\",\n\n\"value\": \"TU_ID_DE_APP_AQUÍ\"\n\n},\n\n{\n\"name\": \"client_secret\",\n\n\"value\": \"TU_CLAVE_SECRETA_AQUÍ\"\n\n},\n\n{\n\"name\": \"grant_type\",\n\n\"value\": \"client_credentials\"\n\n}\n\n]\n},\n\n\"options\": {}\n\n},\n\n\"id\": \"step_1_auth\",\n\"name\": \"Paso 1: Obtener token\",\n\n\"type\": \"n8n-nodes-base.httpRequest\",\n\"typeVersion\": 4.1,\n\n\"position\": [\n460,\n300\n\n]\n},\n\n{\n\"parameters\": {\n\n\"method\": \"POST\",\n\n\"url\": \"https://api.morelogin.com/cloudphone/rpa/onceTask/save\",\n\"sendHeaders\": true,\n\n\"headerParameters\": {\n\n\"parameters\": [\n{\n\"name\": \"Authorization\",\n\n\"value\": \"={{ 'Bearer ' + $json.data.access_token }}\"\n\n}\n]\n},\n\n\"sendBody\": verdadero,\n\n\"contentType\": \"json\",\n\n\"bodyParameters\": {\n\n\"parameters\": [\n\n{\n\"name\": \"cloudPhoneId\",\n\n\"value\": 1234567890\n},\n\n{\n\"name\": \"templateId\",\n\n\"value\": 1678347487160256\n},\n\n{\n\"name\": \"scheduleName\",\n\n\"value\": \"n8n-Auto-Task\"\n\n},\n\n{\n\"name\": \"description\",\n\"value\": \"Activado mediante n8n\"\n\n},\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\" contenido!\\n}) }}\"\n}\n\n]\n},\n\"opciones\": {}\n\n},\n\"id\": \"step_2_run_task\",\n\"nombre\": \"Paso 2: Ejecutar tarea\",\n\"tipo\": \"n8n-nodes-base.httpRequest\",\n\"versión de tipo\": 4.1,\n\"posición\": [\n680,\n\n300\n],\n\"dependencias\": {\n\"nodos\": [\n{\n\"nodo\": \"Paso 1: Obtener token\",\n\n\"tipo\": \"principal\",\n\"índice\": 0\n\n}\n\n]\n}\n}\n],\n\"conexiones\": {\n\"Paso 1: Obtener token\": {\n\"principal\": [\n[\n{\n\"nodo\": \"Paso 2: Ejecutar tarea\",\n\"tipo\": \"principal\",\n\"índice\": 0\n\n}\n\n]\n]\n}\n}\n}```\n","lang":"json"},"children":[]}]},"headings":[{"value":"n8n","id":"n8n","depth":1},{"value":"Requisitos previos","id":"requisitos-previos","depth":2},{"value":"Importación de flujo de trabajo con un solo clic","id":"importación-de-flujo-de-trabajo-con-un-solo-clic","depth":2}],"frontmatter":{"seo":{"title":"n8n"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/es/rparobotic-process-automation/04-integration/n8n","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}