Retrieving data from huginn can be done with the DataOutputAgent.
Sending data to huginn can be achieved through the WebhookAgent.