{"name":"Packrift MCP first useful run","nodes":[{"parameters":{},"id":"manual-trigger","name":"Manual Trigger","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[0,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"tools\",\"method\":\"tools/list\"}"},"id":"tools-list","name":"List Packrift MCP tools","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[240,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"candidate-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"get_cart_handoff_candidates\",\"arguments\":{\"sku\":\"1066\",\"limit\":1,\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\"}}}"},"id":"cart-candidates","name":"Get cart handoff candidates","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[480,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"price-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"get_pricing\",\"arguments\":{\"variant_ids\":[\"53472879935856\"],\"quantity\":1,\"selected_sku\":\"1066\",\"selected_handle\":\"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\"match_type\":\"n8n_first_useful_run\",\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\"}}}"},"id":"pricing","name":"Get live price","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[720,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"inventory-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"check_inventory\",\"arguments\":{\"variant_ids\":[\"53472879935856\"],\"selected_sku\":\"1066\",\"selected_handle\":\"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\"match_type\":\"n8n_first_useful_run\",\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\"}}}"},"id":"inventory","name":"Check live inventory","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[960,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"cart-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"create_cart_url\",\"arguments\":{\"sku\":\"1066\",\"quantity\":1,\"selected_sku\":\"1066\",\"selected_handle\":\"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\"match_type\":\"n8n_first_useful_run\",\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\",\"utm_term\":\"1066\"}}}"},"id":"create-cart","name":"Create measured MCP cart URL","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[1200,0]},{"parameters":{"jsCode":"const raw = typeof $json === 'string' ? $json : JSON.stringify($json);\nconst match = raw.match(/https:\\/\\/mcp\\.packrift\\.com\\/r\\/cart\\/[^\"\\s<>\\\\]+/);\nif (!match) throw new Error('No measured Packrift MCP /r/cart URL found in create_cart_url response.');\nreturn [{ json: { cart_url: match[0], source_context: 'n8n_automation_first_cart_run' } }];"},"id":"extract-cart-url","name":"Extract measured cart URL","type":"n8n-nodes-base.code","typeVersion":2,"position":[1440,0]},{"parameters":{"method":"GET","url":"={{$json.cart_url}}","sendHeaders":true,"headerParameters":{"parameters":[{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]}},"id":"touch-cart-landing","name":"Record measured cart landing","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[1680,0]}],"connections":{"Manual Trigger":{"main":[[{"node":"List Packrift MCP tools","type":"main","index":0}]]},"List Packrift MCP tools":{"main":[[{"node":"Get cart handoff candidates","type":"main","index":0}]]},"Get cart handoff candidates":{"main":[[{"node":"Get live price","type":"main","index":0}]]},"Get live price":{"main":[[{"node":"Check live inventory","type":"main","index":0}]]},"Check live inventory":{"main":[[{"node":"Create measured MCP cart URL","type":"main","index":0}]]},"Create measured MCP cart URL":{"main":[[{"node":"Extract measured cart URL","type":"main","index":0}]]},"Extract measured cart URL":{"main":[[{"node":"Record measured cart landing","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1"},"tags":["packrift","mcp","ai-commerce"],"pinData":{},"versionId":"packrift-mcp-first-useful-run-r01"}