Now update the `saveAIResponse` call to include `deep_analysis_playbook`.


Edit

                                    // Save to MongoDB
                                    await saveAIResponse({
                                        thread_ids: [currentThreadId].concat(allAdditionalThreads),
                                        contact_id: primaryContactId,
                                        question: pass.prompt,
                                        context: context,
                                        agent: pass.agent,
                                        content_mode: contentMode,
                                        content_sent: fullContent,
                                        content_length: fullContent.length,
                                        estimated_tokens: finalTokens,
                                        provider: prov,
                                        model: modelsMap[prov],
                                        query_id: data.query_id,
                                        response: provResponse,
                                        total_cost: provResponse.cost || 0,
                                        all_providers: selectedProvidersList,
                                        deep_analysis_pass: passNum,
                                        deep_analysis_name: pass.name
                                    });

                                    // Save to MongoDB
                                    await saveAIResponse({
                                        thread_ids: [currentThreadId].concat(allAdditionalThreads),
                                        contact_id: primaryContactId,
                                        question: pass.prompt,
                                        context: context,
                                        agent: pass.agent,
                                        content_mode: contentMode,
                                        content_sent: fullContent,
                                        content_length: fullContent.length,
                                        estimated_tokens: finalTokens,
                                        provider: prov,
                                        model: modelsMap[prov],
                                        query_id: data.query_id,
                                        response: provResponse,
                                        total_cost: provResponse.cost || 0,
                                        all_providers: selectedProvidersList,
                                        deep_analysis_pass: passNum,
                                        deep_analysis_name: pass.name,
                                        deep_analysis_playbook: playbookKey
                                    });