{ "kind": "open-flow-workflow", "version": 1, "name": "Look Up a Person by Email with Clearbit", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_5fb001fd94db094c": { "name": "Enter an email address", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "email" } ] }, "n_8370c5ce9a09674c": { "inputs": { "email": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_5fb001fd94db094c", "output": "email" } ] } }, "name": "Prepare person lookup", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "email" } ], "outputs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "url" } ], "name": "Prepare person lookup", "moduleId": "n_cded65716da0142d", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_688deb131b273331": { "inputs": { "url": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_8370c5ce9a09674c", "output": "url" } ] }, "auth.token": { "kind": "unset" } }, "name": "Look up the person", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "url" }, { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "auth.token" } ], "outputs": [ { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "integer" }, "nullable": false, "handle": "statusCode" }, { "jsonSchema": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": false, "handle": "headers" } ], "name": "Look up the person", "executor": { "method": "GET", "query": { "mode": "fields", "names": [] }, "headers": { "mode": "fields", "names": [] }, "bodyFormat": "none", "authentication": { "type": "bearer" }, "responseFormat": "json", "statusPolicy": "success", "kind": "http-request" } } }, "n_24005a9e850c7d58": { "name": "Person response", "kind": "outputs", "outputDefs": [ { "jsonSchema": {}, "nullable": true, "handle": "response" } ], "outputMappings": { "response": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_688deb131b273331", "output": "body" } ] } } } }, "edges": [ { "source": "n_5fb001fd94db094c", "target": "n_8370c5ce9a09674c" }, { "source": "n_8370c5ce9a09674c", "target": "n_688deb131b273331" }, { "source": "n_688deb131b273331", "target": "n_24005a9e850c7d58" } ] } }, "modules": { "n_cded65716da0142d": { "name": "Prepare person lookup", "imports": [], "source": "export default function person({email}){if(typeof email!=='string'||!email)throw Error('Enter an email address');return{url:'https://person-stream.clearbit.com/v2/people/find?email='+encodeURIComponent(email)}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }