About Interakt
Interakt is an MCP server published by alphasolutionsrepo in the RAG category: open-source, self-hosted search and AI chat for your website, grounded in your own data. Conduid read 20 tools from its source: fetch, get_ai_effectiveness, get_catalog_health, get_conversation_detail, get_cost_analysis, get_customer_intent_analysis and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 40 stars and 2 forks, is licensed MIT, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 4 static checks Conduid ran on the repository. Its topics include ai-chat, elasticsearch, hybrid-search, nextjs, rag and search.
Install
git clone https://github.com/alphasolutionsrepo/interaktTools (20)
fetchReturns the full text and details of one document of ${subject}, by the id search gave for it.| Parameter | Type | Description |
|---|---|---|
| id * | string | The id of a document returned by search |
get_ai_effectivenessEvaluate how well the AI assistant is serving customers. WHAT IT RETURNS: - Success rate, retry rate, failure modes (plan_failed, context_assembly_failed) - Decision distribution: direct response vs tool call vs error - Response preset distribution (item_grid, rich_text, etc.) - Average conversation duration BUSINESS INTERPRETATION: - Success rate shows overall AI reliability - High direct_response rate may mean AI is answering without searching (could be good or bad) - Plan failures suggest complex queries the AI can't handle - Preset distribution shows how the AI is formatting responses REQUIRES: Analytics processing must be run first. WHEN TO USE: "Is the AI helping?", "How effective is the AI?", "AI success rate", "How is the assistant performing?"| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range. Default is 7d. |
get_catalog_healthAnalyze catalog health with retry-deduplicated zero-result rates. WHAT IT RETURNS: - Real zero-result rate (deduplicated for AI retries) vs apparent rate - Top queries returning no results - Retry analysis: how many searches needed multiple attempts BUSINESS INTERPRETATION: - IMPORTANT: The "real" zero-result rate removes retry inflation. A conversation that retried 3 times and succeeded = 1 success, not "2 failures + 1 success" - High real zero-result rate = genuine content gaps - High retry rate = AI working harder, increasing costs and response times - Top zero-result queries = specific gaps to fill REQUIRES: Analytics processing must be run first. WHEN TO USE: "Where is my catalog failing?", "What content am I missing?", "Are searches returning results?"| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range. Default is 7d. |
get_conversation_detailGet a detailed timeline view of a single conversation trace. WHAT IT RETURNS: - Full span timeline for a trace: user message → plan → tool calls → response - Each span shows: operation, duration, status, tool results, AI reasoning BUSINESS INTERPRETATION: - Shows exactly what happened in a specific conversation - Useful for debugging failed conversations or understanding AI behavior - Look for: long durations, failed tool calls, unexpected outcomes This is a LIVE query (not pre-computed) — it reads directly from span data. WHEN TO USE: "Show me conversation X", "What happened in trace Y?", "Debug this conversation"| Parameter | Type | Description |
|---|---|---|
| traceId * | string | The trace ID of the conversation to inspect |
get_cost_analysisAnalyze AI token usage and cost metrics. WHAT IT RETURNS: - Total token usage (input/output breakdown) - Per-conversation average and max token usage - Retry waste: tokens spent on non-final retry attempts - Total conversations processed BUSINESS INTERPRETATION: - High retry waste percentage = optimization opportunity - Outlier conversations (max >> avg) may indicate loops or complex queries - Token distribution between input/output shows conversation patterns REQUIRES: Analytics processing must be run first. WHEN TO USE: "How much is AI costing?", "Token usage?", "AI costs?", "Where are we spending tokens?"| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range. Default is 7d. |
get_customer_intent_analysisAnalyze what customers are asking about by showing clustered intent groups. WHAT IT RETURNS: - Semantically grouped clusters of customer intents (e.g., "Hockey Equipment Search", "Size Questions") - Each cluster has: label, count, success rate, sample queries - Shows total unique intents and how they're distributed BUSINESS INTERPRETATION: - High-count clusters = most common customer needs - Low success rate on a cluster = content gap for that topic - Many small clusters = diverse customer base - Suggest focusing catalog improvements on high-count, low-success clusters REQUIRES: Analytics processing must be run first (Refresh Insights button). If data is not available, tell the admin to run "Refresh Insights" first. WHEN TO USE: "What are customers looking for?", "What do users ask about?", "Show me customer intents", "What are users searching for?", "What are people asking?" NOT FOR: Top search queries by count (use get_popular_queries), trending brands/categories (use get_demand_signals)| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range for the analysis. Default is 7d. |
get_demand_signalsShow trending brands, categories, and search terms. WHAT IT RETURNS: - Top brands mentioned in search filters/queries - Top categories being searched - Most frequent search queries BUSINESS INTERPRETATION: - Rising brands = growing customer interest, ensure stock - Top categories = where to focus merchandising - Query patterns reveal what language customers use REQUIRES: Analytics processing must be run first. WHEN TO USE: "What's trending?", "Popular brands?", "What categories are hot?", "Demand signals", "Brand trends" NOT FOR: What are users searching for (use get_customer_intent_analysis), top search queries (use get_popular_queries)| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range. Default is 7d. |
get_guardrail_analyticsAnalyze guardrail classification and filtering behavior. WHAT IT RETURNS: - Classification distribution (domain/general/greeting/blocked) - Block rate and blocklist match count - Domain similarity statistics - Short-circuit rate BUSINESS INTERPRETATION: - High block rate may mean legitimate queries are being filtered - Low domain similarity scores suggest users asking off-topic questions - Blocklist matches show specific terms being caught REQUIRES: Analytics processing must be run first. WHEN TO USE: "Are we blocking legitimate queries?", "Guardrail performance?", "How is content filtering working?"| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range. Default is 7d. |
get_popular_queriesGet the most popular search queries ranked by frequency. INTELLIGENT INTERPRETATION: - Default timeRange is '24h'. - If the array is empty, tell the user "No searches recorded in this period." - IMPORTANT: zeroResultCount shows how many times THIS SPECIFIC QUERY returned zero results out of total searchCount. - A query can have BOTH successful searches AND failed searches. Example: "jacket" with 61 searches and 7 zero results means 54 searches returned results, but 7 times it returned nothing (possibly due to filters, typos in variations, or timing issues). - This is DIFFERENT from get_zero_result_queries which only shows queries that ALWAYS fail. - If zeroResultCount > 0, offer: "Would you like me to look at the specific search events for '[query]' to understand why some searches failed?" - If a query has low avgResults, it might indicate poor relevance. WHEN TO USE: Questions about top search queries by volume, popular searches, most searched terms, "show me top queries", "what are people searching for" NOTE: For semantic intent grouping (clustered themes), use get_customer_intent_analysis instead.| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| limit | number | Maximum number of queries to return (default 20) |
| origin | string | Whose searches: 'visitor' (typed by visitors), 'assistant' (made by an AI assistant while answering), or 'all' (both, the default) |
| timeRange | string | Time range for the query analysis |
get_proactive_insightsGet AI-detected issues, opportunities, and recommendations. WHAT IT RETURNS: - Prioritized list of insights with severity (critical/warning/info) - Categories: search_quality, content_gap, ai_behavior, cost, demand - Each insight has a title, description, metric, and suggested action BUSINESS INTERPRETATION: - Critical insights need immediate attention - Warning insights are opportunities for improvement - Info insights are observations about trends and patterns - Always present the top 3-5 most important insights conversationally REQUIRES: Analytics processing must be run first. This tool should be called first when starting a new conversation. WHEN TO USE: "What should I focus on?", "Any issues?", "What needs attention?", "Give me insights", or at the START of any new analytics conversation.| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific experience ID |
| timeRange | string | Time range. Default is 7d. |
get_query_search_eventsGet all individual search events for a specific query term. This shows EVERY search that was made with this query, including which ones succeeded and which returned zero results. THIS IS THE TOOL TO USE when: - The user asks "why did X searches for 'jacket' fail?" - The user wants to understand intermittent failures for a popular query - The user sees zeroResultCount > 0 in popular queries and wants details WHAT IT RETURNS: - Each individual search event with: timestamp, query text, search type, trigger type, total results, whether it was a zero result, and if filters were used - This lets you see PATTERNS: maybe zero results happen when filters are applied, or only for certain search types INTELLIGENT INTERPRETATION: - Compare searches that returned results vs zero results - Look for patterns: Did zero results happen with filters? With certain search types? - trigger shows who ran it: user (a visitor), ai_tool (the AI's Search tool), or a lookup named by its tool or step (ai_tool:lookup = Find Record, ai_tool:enumerate = List Values, ai_step:parameter_context, ai_step:query_interpretation, ai_step:field_values_legacy); lookups aren't counted as searches - hasFilters=true with isZeroResult=true might indicate filters are too restrictive - After showing results, suggest: "Would you like me to look for patterns in why some searches failed?"| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| limit | number | Maximum number of events to return (default 50) |
| queryText * | string | The exact query text to search for (case-insensitive) |
| timeRange | string | Time range for the analysis. Default is 7d. |
get_recent_searchesGet the most recent search events showing real-time activity. INTELLIGENT INTERPRETATION: - This shows live/recent data, not aggregated metrics. - If the array is empty, tell the user "No recent searches found." - Look for patterns in trigger types (user vs AI-initiated). - Failed searches (success=false) indicate issues worth investigating. - After showing results, offer: "Want me to analyze the overall search performance?" WHEN TO USE: Questions about recent activity, live searches, "what's happening now."| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| limit | number | Maximum number of events to return (default 20) |
get_search_overviewGet an overview of search analytics including total searches, unique queries, zero result rate, and average latency. INTELLIGENT INTERPRETATION: - Default timeRange is '24h' if user doesn't specify. - ALWAYS mention the time period in your response: "In the last 24 hours..." or "Over the past 7 days..." - If totalSearches is 0, tell the user "No searches have been recorded in this period" rather than showing zero metrics. - If zeroResultRate > ${(t.zeroResultRate.warning * 100).toFixed(0)}%, this indicates content gaps worth investigating. - After showing results, offer to check different periods or drill into specific metrics. WHEN TO USE: General questions about search health, overview requests, or starting a conversation about analytics.| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| timeRange | string | Time range for the analytics. Default is 24h. |
get_search_performanceGet detailed search performance metrics including latency percentiles (p50, p95, p99). CRITICAL INTERPRETATION RULES: - Default timeRange is '24h'. - If ALL metrics are 0 (avgDurationMs=0, p50=0, p95=0, p99=0), this means NO SEARCHES occurred. DO NOT say "response time is 0ms" - instead say "No searches were recorded in this period." - p50 (median) shows typical user experience. - p95/p99 show worst-case scenarios - flag if > ${t.latency.acceptable}ms. - avgEsDurationMs shows Elasticsearch time, avgEmbeddingDurationMs shows AI embedding time. - After showing results, offer: "Would you like me to check a different time period (1h, 7d, 30d)?" PERFORMANCE THRESHOLDS: - < ${t.latency.excellent}ms: Excellent - ${t.latency.excellent}-${t.latency.good}ms: Good - ${t.latency.good}-${t.latency.acceptable}ms: Acceptable - > ${t.latency.acceptable}ms: Needs attention WHEN TO USE: Questions about response time, latency, speed, performance issues.| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| timeRange | string | Time range for the analysis |
get_search_trendsGet search volume trends over time as time-series data for charting. INTELLIGENT INTERPRETATION: - Default timeRange is '24h' showing hourly data points. - If the array is empty or all values are 0, tell the user "No search activity recorded in this period." - Look for patterns: spikes might indicate marketing campaigns, drops might indicate issues. - For trend questions, suggest using 7d or 30d for meaningful patterns. - After showing results, offer: "Would you like me to compare this to the previous period?" WHEN TO USE: Questions about search volume over time, patterns, anomalies, or "how has search been performing."| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| timeRange | string | Time range for the trends |
get_search_type_breakdownGet breakdown of search types used (lexical, semantic, hybrid). INTELLIGENT INTERPRETATION: - Default timeRange is '24h'. - If all values are 0, tell the user "No searches recorded in this period." - High semantic usage indicates AI-powered search is working. - High lexical-only might indicate simpler queries or fallback behavior. - After showing results, offer: "Want to see how performance differs by search type?" WHEN TO USE: Questions about search methods, AI vs keyword search, search technology distribution.| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| timeRange | string | Time range for the analysis |
get_zero_result_queriesGet queries from the DEDUPLICATED zero-result queries table - these are queries tracked for content gap analysis. IMPORTANT DATA SOURCE DIFFERENCE: - This queries the zeroResultQueries table which is a ROLLUP/AGGREGATED table. - It contains queries that have been flagged for content gap analysis. - This is DIFFERENT from zeroResultCount in get_popular_queries, which shows real-time counts from raw search events. - If a query sometimes returns results and sometimes doesn't, it may NOT appear here but WILL show a zeroResultCount in popular queries. INTELLIGENT INTERPRETATION: - Default timeRange is '24h'. - If the array is empty, it could mean: (a) No queries have been flagged for content gaps, OR (b) All flagged queries have been resolved. - This does NOT mean zero searches failed - check get_popular_queries for zeroResultCount to see intermittent failures. - High occurrence counts indicate urgent content gaps to address. - After showing results, offer: "Would you like suggestions on which content to add?" WHEN TO USE: Questions about content gaps, queries that ALWAYS fail, "what content should we add." NOT FOR: Understanding why a specific popular query sometimes fails (use get_query_search_events instead).| Parameter | Type | Description |
|---|---|---|
| experienceId | string | Optional: Filter by specific search experience ID |
| limit | number | Maximum number of queries to return (default 50) |
| origin | string | Whose searches: 'visitor' (typed by visitors), 'assistant' (made by an AI assistant while answering), or 'all' (both, the default) |
| timeRange | string | Time range for the analysis |
memory_retrievalSearch earlier messages in this conversation that may have scrolled out of the current context window. Use this when the user references something discussed earlier, or when you need to recall details from a previous part of the conversation.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of messages to return (default: 10, max: 25) |
| query * | string | What to search for in the conversation history. Use natural language — semantic search will find related content even if exact words differ. |
respond_with_analyticsREQUIRED: Call this tool to format your final response after analyzing data from other tools. This ensures consistent, intelligent responses with proper context and follow-up suggestions. HOW TO USE: 1. First, call the appropriate data tool(s) to get analytics data 2. Analyze the results 3. Call this tool with your interpretation RULES FOR summary: - Be conversational, not robotic - Include the time period: "In the last 24 hours..." - Provide insight, not just data repetition - If no data: explain what that means, don't just say "0" RULES FOR dataStatus: - 'has_data': Normal data exists to discuss - 'no_data': All metrics are zero/empty - no activity in the period - 'sparse_data': Very little data - might want longer period - 'anomaly': Something unusual detected worth highlighting RULES FOR suggestedFollowUps: - Provide 1-3 natural follow-up questions - Make them specific to the data context - Examples: "Check a longer time period", "See the breakdown by search type"| Parameter | Type | Description |
|---|---|---|
| dataStatus * | string | Classification of the data state to guide UI presentation |
| suggestedFollowUps | array | 1-3 natural follow-up questions the user might want to ask |
| summary * | string | Brief 1-2 sentence insight about the data. Be conversational. Include the time period. Interpret, do not just restate numbers. |
| timePeriodUsed * | string | The time period that was queried (e.g., "last 24 hours", "past 7 days") |
searchSearches ${subject}. Returns the matching documents, each with an id, a title, a link and a short snippet.| Parameter | Type | Description |
|---|---|---|
| page | number | Page of results, starting at 1 |
| pageSize | number | Results per page (default ${DEFAULT_PAGE_SIZE}) |
| query * | string | What to search for |
Security checks
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
2 checks have not been run yet.
README
The repository's README runs to about 1.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README