{"name":"Property Listing Workflow","nodes":[{"parameters":{},"type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[0,0],"id":"215a4073-f919-45e9-81df-be7e7e73438e","name":"When clicking ‘Execute workflow’"},{"parameters":{"modelId":{"__rl":true,"value":"claude-sonnet-4-6","mode":"list","cachedResultName":"claude-sonnet-4-6"},"messages":{"values":[{"content":"Can you generate dummy values for the following JSON? The <AGENT_ID> needs to be an integer from 1 to 50. The description needs to be around 400 characters. The output needs to be just the updated JSON.\n\n{\n  \"agent_photo\": \"https://randomuser.me/api/portraits/women/<AGENT_ID>.jpg\",\n  \"agent_address\": \"\",\n  \"agent_phone\": \"\",\n  \"agent_email\": \"\",\n  \"agent_name\": \"\",\n  \"description\": \"\",\n  \"kitchens\": \"\",\n  \"bathrooms\": \"\",\n  \"bedrooms\": \"\",\n  \"surface\": \"\",\n  \"price\": \"\",\n  \"url\": \"https://www.docugenerate.com/blog/generate-property-listings-with-n8n-and-docugenerate/\",\n  \"main_image\": \"https://images.pexels.com/photos/1571459/pexels-photo-1571459.jpeg\",\n  \"image1\": \"https://images.pexels.com/photos/6782567/pexels-photo-6782567.jpeg?w=400\",\n  \"image2\": \"https://images.pexels.com/photos/2089698/pexels-photo-2089698.jpeg?w=400\",\n  \"image3\": \"https://images.pexels.com/photos/164595/pexels-photo-164595.jpeg?w=400\"\n}"}]},"options":{}},"type":"@n8n/n8n-nodes-langchain.anthropic","typeVersion":1,"position":[224,0],"id":"d1ad61a9-2a44-4191-8772-ae10bda4c01d","name":"Message a model","credentials":{"anthropicApi":{"id":"XPyPDNKxN6BSFtrd","name":"Anthropic account"}}},{"parameters":{"resource":"document","templateId":"<TEMPLATE_ID>","name":"=Property Listing for {{ $json.price }} ({{ $json.surface }})","outputFormat":".pdf","requestOptions":{}},"type":"n8n-nodes-docugenerate.docuGenerate","typeVersion":1,"position":[800,0],"id":"256711a7-9cd7-4190-a0e0-ead9ab22061d","name":"Generate document","credentials":{"docugenerateApi":{"id":"oQXakGLGywchjPqC","name":"DocuGenerate account"}}},{"parameters":{"jsCode":"const text = $input.first().json.content[0].text;\nconst json = text.replace(/```json\\n?/, '').replace(/\\n?```/, '').trim();\nreturn { json: JSON.parse(json) };"},"type":"n8n-nodes-base.code","typeVersion":2,"position":[576,0],"id":"d0aef11d-ae6f-4544-b5d0-ad95390e21e7","name":"Code in JavaScript"},{"parameters":{"authentication":"oAuth2","path":"=/n8n/Property Listings/{{ $json.filename }}","binaryData":true},"type":"n8n-nodes-base.dropbox","typeVersion":1,"position":[1248,0],"id":"b5ed89b0-8bb3-4943-94ed-300003608500","name":"Upload a file","credentials":{"dropboxOAuth2Api":{"id":"d9Orh9K0UiQjFIDj","name":"Dropbox OAuth2 API"}}},{"parameters":{"url":"={{ $json.document_uri }}","options":{}},"type":"n8n-nodes-base.httpRequest","typeVersion":4.4,"position":[1024,0],"id":"3156e1f5-63e8-45bf-ae00-4ad9634b34e9","name":"HTTP Request"}],"pinData":{},"connections":{"When clicking ‘Execute workflow’":{"main":[[{"node":"Message a model","type":"main","index":0}]]},"Message a model":{"main":[[{"node":"Code in JavaScript","type":"main","index":0}]]},"Code in JavaScript":{"main":[[{"node":"Generate document","type":"main","index":0}]]},"Generate document":{"main":[[{"node":"HTTP Request","type":"main","index":0}]]},"HTTP Request":{"main":[[{"node":"Upload a file","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1","binaryMode":"separate","availableInMCP":false},"versionId":"f65422da-dd9f-45c3-bf7a-8b02815a7051","meta":{"templateCredsSetupCompleted":true,"instanceId":"94c0f1477e550928039cb8c7ce8f5591876d15b2ae8aeffab7bfdf6d476caad8"},"id":"NnfrzIJpYwnXQFO7","tags":[]}