Changeset 0.29.3 (#198)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit is contained in:
@@ -136,11 +136,17 @@ func (t *workflowAdvanceTool) Execute(ctx context.Context, execCtx ExecutionCont
|
||||
CreateWorkflowAssignment(ctx, t.stores, channelID, nextStage, *nextStageDef.AssignmentTeamID)
|
||||
}
|
||||
|
||||
msg := fmt.Sprintf("Advanced to stage %d: %s", nextStage, nextStageDef.Name)
|
||||
if nextStageDef.StageMode == models.StageModeFormOnly {
|
||||
msg += " (form-only stage — visitor will fill out a form, no chat needed)"
|
||||
}
|
||||
|
||||
result, _ := json.Marshal(map[string]interface{}{
|
||||
"status": "active",
|
||||
"current_stage": nextStage,
|
||||
"stage_name": nextStageDef.Name,
|
||||
"message": fmt.Sprintf("Advanced to stage %d: %s", nextStage, nextStageDef.Name),
|
||||
"stage_mode": nextStageDef.StageMode,
|
||||
"message": msg,
|
||||
})
|
||||
return string(result), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user