Skip to content

Commit

Permalink
plugin-flow-builder: store in session every new flow_thread_id (#2912)
Browse files Browse the repository at this point in the history
## Description

Save the flow_thread_id in the session each time a new flowThreadId is
generated

## Context

When a bot does not go through the conversation start of the flow, the
plugin was not saving the flow_thread_id in the session.
  • Loading branch information
Iru89 authored Oct 3, 2024
1 parent 47edbea commit d63d963
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/botonic-plugin-flow-builder/src/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function getContentEventArgs(
}
) {
const flowThreadId = request.session.flow_thread_id ?? uuid()
request.session.flow_thread_id = flowThreadId

return {
flowThreadId,
flowId: contentInfo.flowId,
Expand Down

0 comments on commit d63d963

Please sign in to comment.