Collect analytics in your bixby capsules
Copy the lib/dashbot.js
file into your capsule. It should be named code/lib/dashbot.js
.
Add a secret to the capsule called dashbotKey
and add an api key from dashbot.
In your action, include the library:
const dashbot = require("./lib/dashbot");
Then call either dashbot.incoming
or dashbot.outgoing
depending on if you're logging user messages or your response.
dashbot.incoming(
"actionName",
"Some query from the user",
$vivContext,
{}
);