Like lamb and tunafish.
This short demo uses Helidon as the receiver for a Google Home device, which in turn calls an Fn Flow function which in turn runs a workflow of Fn functions.
About as simple as a milkshake.
fn.callFn("giphyfn/flow", input);
Just make sure to import the caller.
import io.helidon.examples.quickstart.fn.FnCaller;
Oh and run setenv.sh
to set the invoke endpoint.
Bonus: you can just fn deploy
functions as opposed to redeploying the Helidon app.
Note: This doesn't use the Fn Java SDK which is not in a great state at the moment. Will use that next for a fresher cleaner feeling.
You'll also need the following code if you want to run the whole shebang:
http://github.com/carimura/giphyfn
https://github.com/carimura/tools/tree/master/slack/post-to-slack
Here's a short video of me talking to a robot:
If Changes: mvn package
To Run: java -jar target/helidon-quickstart-mp.jar
Ngrok for Goog Home: ngrok http 8082 -subdomain=carimura