-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin-hubtype-analytics: change events to use new endpoint v2 #2827
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iru89
force-pushed
the
plugin-hubtype-analytics/feedback-event
branch
from
May 17, 2024 16:49
c62f8b7
to
49104cd
Compare
Iru89
changed the title
Plugin hubtype analytics/feedback event
plugin-hubtype-analytics: feedback event
May 22, 2024
vanbasten17
approved these changes
May 23, 2024
Iru89
changed the title
plugin-hubtype-analytics: feedback event
plugin-hubtype-analytics: change events to use new endpoint v2
May 23, 2024
…ead of htEventProps.type, to create a specific event
update event flow
Iru89
force-pushed
the
plugin-hubtype-analytics/feedback-event
branch
from
May 23, 2024 14:27
c027dd9
to
cc41c1f
Compare
…ent (#2834) ## Description Review commit by commit Add events to plugin flow builder: - fallback event - keyword event - intent - intent smart
## Description Refactor custom event to have only one custom event and to always go through the public API
## Description * Removing data field from events --------- Co-authored-by: Oriol Raventos <o.raventos.89@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
@botonic/plugin-hubtype-analytics
Accumulation of all PRs of new hubtype-analytics events with endpoint v2
Apply events within the botonic-plugin-flow-builder
Update Session and Input types within botonic-core
Add the withBotEvent option to the botonic-core HandoffBuilder to tell the backend to track the handoff-success
Context
There are two types of events: botevent and webevent
Approach taken / Explain the design
Different actions of the bot can be tracked, for now we have the following ones:
The plugin-flow-builder takes care of flow tracking and exports the function, trackFlowContent to facilitate the tracking of content displayed in the bot. Apart from tracking the content displayed by the bot, it tracks Keywords, IntentSmart, IntentKnowledge base and Fallback. It also uses the HandoffBuilder with the parameter with BotEvent for the backend to track the handoff-success.
To document / Usage example
In the bot code we can declare a function like this and then pass it through the flow builder constructor to make it work
Testing