fix: reset nodo tras saludo + fallback por categoria 3
This commit is contained in:
@@ -48,14 +48,15 @@ class NormalBot
|
||||
|
||||
$greeting = $perType['greeting'] ?? $config['greeting'] ?? null;
|
||||
if ($greeting !== null && $currentNode === null) {
|
||||
ConversationContext::updateNode($ctxId, 'greeting');
|
||||
|
||||
$greetingFlowId = $perType['greeting_flow'] ?? 'greeting';
|
||||
if (isset($flows[$greetingFlowId])) {
|
||||
ConversationContext::updateNode($ctxId, $greetingFlowId);
|
||||
return self::handleFlow($flows[$greetingFlowId], $context, $company, $ctxId);
|
||||
}
|
||||
|
||||
return self::sendText($greeting, $context['from'], $company);
|
||||
$response = self::sendText($greeting, $context['from'], $company);
|
||||
ConversationContext::updateNode($ctxId, null);
|
||||
return $response;
|
||||
}
|
||||
|
||||
$fallback = $perType['fallback'] ?? $config['fallback'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user