Skip to main content

Overview

The askMore 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

Source: src/ai/flows/ask-more.ts:23

Input Schema

string
required
The user’s follow-up question.
string
required
The JSON string of the current analysis (blueprint, summary, tweets, etc.).
ChatMessage[]
required
Previous chat messages in the conversation.Each message has:
  • role: Either “user” or “model”
  • content: The message text

Input Type

Output Schema

string
required
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:
  1. Context Analysis: Checks if the answer exists in the current analysis context or chat history
  2. Direct Answer: If found in context, answers directly with citations
  3. Live Research: If not in context, uses AI tools to perform:
    • Web searches for current information
    • Twitter searches for social sentiment
  4. Answer Generation: Synthesizes findings into a comprehensive, well-formatted response
  5. 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
System Prompt (from 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?”