Skip to main content

Overview

The createAskFredThread mutation allows you to start a new AskFred conversation by asking questions about your meeting transcripts. You can ask about a specific meeting or search across multiple meetings using filters. AskFred uses AI to analyze your meeting data and provide intelligent, context-aware answers.

Arguments

input
CreateAskFredThreadInput

Returns

Returns an AskFredResponse object containing the generated message with the answer to your query.

Usage Example

Query a Specific Meeting

mutation CreateThreadForMeeting($input: CreateAskFredThreadInput!) {
  createAskFredThread(input: $input) {
    message {
      id
      thread_id
      query
      answer
      suggested_queries
      status
      created_at
    }
  }
}

Query Across Multiple Meetings

mutation CreateThreadWithFilters($input: CreateAskFredThreadInput!) {
  createAskFredThread(input: $input) {
    message {
      id
      thread_id
      query
      answer
      suggested_queries
      status
    }
  }
}
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "query": "mutation CreateThread($input: CreateAskFredThreadInput!) { createAskFredThread(input: $input) { message { id thread_id query answer suggested_queries status } } }",
    "variables": {
      "input": {
        "query": "What were the main decisions made in the product planning meeting?",
        "transcript_id": "transcript_xyz789",
        "response_language": "en",
        "format_mode": "markdown"
      }
    }
  }' \
  https://api.fireflies.ai/graphql
{
  "data": {
    "createAskFredThread": {
      "message": {
        "id": "msg_001",
        "thread_id": "thread_new123",
        "query": "What were the main decisions made in the product planning meeting?",
        "answer": "Based on the product planning meeting transcript, here are the main decisions made:\n\n## Product Roadmap\n- **Q4 Focus**: Prioritize mobile app improvements and API v2 development\n- **Feature Freeze**: No new features after November 15th to focus on stability\n\n## Resource Allocation\n- **Team Expansion**: Approved hiring 2 senior engineers and 1 UX designer\n- **Budget**: Allocated $150K for Q4 development initiatives\n\n## Timeline\n- **Beta Release**: Scheduled for December 1st\n- **Public Launch**: Targeted for January 15th\n\n## Strategic Partnerships\n- **Integration Partners**: Approved partnerships with Slack and Microsoft Teams\n- **API Access**: Will provide early access to 5 strategic partners",
        "suggested_queries": [
          "What specific mobile app improvements were discussed?",
          "Who will be responsible for the API v2 development?",
          "What were the concerns raised about the timeline?"
        ],
        "status": "completed",
        "created_at": "2024-03-15T10:30:00Z"
      }
    }
  }
}

Error Codes

Validation error occurred. Common causes:

  • Query exceeds 2000 character limit or is empty
  • Both transcript_id and filters are provided (only one is allowed)

The specified transcript_id does not exist or you don’t have access to it

You don’t have access to AI credits. Upgrade your plan to use AskFred.

The provided response_language code is not supported. See Language Codes for valid options.