Overview
TheaskMore flow provides an interactive AI research assistant that answers follow-up questions about a specific argument analysis. It has access to the full analysis context and can perform live web and Twitter searches to find additional information.
This flow powers the conversational interface in Argument Cartographer, enabling users to explore topics in depth.
Function Signature
src/ai/flows/ask-more.ts:23
Input Schema
The user’s follow-up question.
The JSON string of the current analysis (blueprint, summary, tweets, etc.).
Previous chat messages in the conversation.Each message has:
role: Either “user” or “model”content: The message text
Input Type
Output Schema
The comprehensive answer to the user’s question, potentially enriched with live research.
Output Type
How It Works
The Ask More flow follows this intelligent workflow:- Context Analysis: Checks if the answer exists in the current analysis context or chat history
- Direct Answer: If found in context, answers directly with citations
- Live Research: If not in context, uses AI tools to perform:
- Web searches for current information
- Twitter searches for social sentiment
- Answer Generation: Synthesizes findings into a comprehensive, well-formatted response
- Citation: Mentions which tools were used and what was found
Available Tools
The flow has access to:- webSearch: Find current information from trusted news sources
- twitterSearch: Discover social media sentiment and discussions
Example Usage
System Behavior
The AI assistant is configured to:- Context First: Always check existing context before searching
- Live Research: Use tools for questions about current events or information not in context
- Grok Style: Be objective, detailed, and slightly conversational
- Formatting: Use Markdown (bold, lists) for readability
- Transparency: Mention which tools were used and what was found
src/ai/flows/ask-more.ts:37):
Configuration
- Temperature: 0.5 (balanced creativity)
- Context Limit: 20,000 characters (truncated for context window safety)
- Tools: Web Search and Twitter Search enabled
Use Cases
- Exploratory Questions: “What are the counterarguments to this?”
- Current Events: “What happened today regarding this topic?”
- Deep Dives: “Explain the economic implications in more detail”
- Fact Checking: “Is this claim verified by other sources?”
- Social Sentiment: “What are people saying about this on Twitter?”
- Follow-up Clarification: “Can you elaborate on point 3?”
