I've an idea how to use bitcoinjs for creating amount of automatic transactions. But can't understand how to get unspent.txHash and unspent.index fastly.
// Creating a Transaction
tx = new bitcoin.Transaction();
// Add the input (who is paying) of the form [previous transaction hash, index of the output to use]
tx.addInput(unspent.txHash, unspent.index);
// Add the output (who to pay to) of the form [payee's address, amount in satoshis]
tx.addOutput("YOUR ADDRESS HEAR", value);
// Initialize a private key using WIF
key = bitcoin.ECKey.fromWIF("L1uyy5qTuGrVXrmrsvHWHgVzW9kKdrp27wBC7Vs6nZDTF2BRUVwy");
// Sign the first input with the new key
tx.sign(0, pk);
// Print transaction serialized as hex
console.log(tx.toHex());