{ "kind": "open-flow-workflow", "version": 1, "name": "Add a Track to the Spotify Queue", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_24ee10dcdba163e2": { "name": "Enter a Spotify track URI", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string", "minLength": 1, "description": "Spotify track or episode URI to add to the queue." }, "nullable": false, "handle": "uri" } ] }, "n_d301bbf538cb4172": { "inputs": { "uri": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_24ee10dcdba163e2", "output": "uri" } ] } }, "name": "Add track to queue", "kind": "task", "task": { "inputs": [ { "description": "Spotify device ID to target. When omitted, Spotify uses the active device.", "jsonSchema": { "type": "string", "minLength": 1, "description": "Spotify device ID to target. When omitted, Spotify uses the active device." }, "nullable": true, "handle": "deviceId", "value": null }, { "description": "Spotify track or episode URI to add to the queue.", "jsonSchema": { "type": "string", "minLength": 1, "description": "Spotify track or episode URI to add to the queue." }, "nullable": false, "handle": "uri" } ], "outputs": [ { "description": "Whether the operation completed successfully.", "jsonSchema": { "type": "boolean", "description": "Whether the operation completed successfully." }, "nullable": false, "handle": "success" } ], "name": "Add track to queue", "executor": { "kind": "connector", "action": "spotify.add_item_to_playback_queue" } } }, "n_21bc7ac0222b80e3": { "name": "Queue result", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "boolean", "description": "Whether the operation completed successfully." }, "nullable": false, "handle": "success" } ], "outputMappings": { "success": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_d301bbf538cb4172", "output": "success" } ] } } } }, "edges": [ { "source": "n_24ee10dcdba163e2", "target": "n_d301bbf538cb4172" }, { "source": "n_d301bbf538cb4172", "target": "n_21bc7ac0222b80e3" } ] } }, "modules": {} }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }