Skip to content

Laravel Fireflies is an elegant wrapper around the Fireflies.ai GraphQL API, providing a fluent interface for managing meeting transcriptions, summaries, and insights in your Laravel application.

Notifications You must be signed in to change notification settings

firefliesai/laravel-fireflies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Fireflies

A Laravel package for integrating with the Fireflies.ai API.

Installation

You can install the package via composer:

composer require sleemkeen/laravel-fireflies

Configuration

Publish the configuration file:

php artisan vendor:publish --provider="Sleemkeen\Fireflies\FirefliesServiceProvider"

Add your Fireflies API key to your .env file:

FIREFLIES_API_KEY=your-api-key

Usage

User Management

use Sleemkeen\Fireflies\Fireflies;
// Get current user
$user = Fireflies::getCurrentUser($fields);

// Get specific user
$user = Fireflies::getUser($fields, $userId);

// Set user role
$result = Fireflies::setUserRole($userId, $role);

Transcripts

// Get all transcripts
$transcripts = Fireflies::getTranscripts($fields);

// Get specific transcript
$transcript = Fireflies::getTranscript($transcriptId, $fields);

// Delete transcript
$result = Fireflies::deleteTranscript($transcriptId);

Bites

// Get all bites
$bites = Fireflies::getBites($fields);

// Get specific bite
$bite = Fireflies::getBite($biteId, $fields);

// Get transcript bites
$bites = Fireflies::getTranscriptBites($transcriptId, $fields);

// Create bite
$bite = Fireflies::createBite($transcriptId, $startTime, $endTime);

// Update bite privacy
$result = Fireflies::updateBitePrivacy($biteId, $privacies);

Meeting Management

// Upload audio
$result = Fireflies::uploadAudio($audioUrl, $options);

// Add to live meeting
$result = Fireflies::addToLiveMeeting($meetingLink);

AI Apps

// Get AI Apps outputs
$options = [
    'app_id' => 'your-app-id',
    'transcript_id' => 'transcript-id',
    'skip' => 0,
    'limit' => 10
];
$outputs = Fireflies::getAIAppsOutputs($options, $fields);

Meeting Summaries

// Get all meeting summaries
$fields = [
    'keywords',
    'action_items',
    'outline',
    'shorthand_bullet',
    'overview',
    'bullet_gist',
    'gist',
    'short_summary',
    'short_overview',
    'meeting_type',
    'topics_discussed',
    'transcript_chapters',
    'extended_sections' => [
        'content',
        'title'
    ]
];
$summaries = Fireflies::getMeetingSummaries($fields);

// Get specific meeting summary
$summary = Fireflies::getMeetingSummary($meetingId, $fields);

Available Methods

User Methods

  • getCurrentUser(array $fields)
  • getUser(array $fields, string $userId = null)
  • setUserRole(string $userId, string $role)

Transcript Methods

  • getTranscripts(array $fields)
  • getTranscript(string $transcriptId, array $fields)
  • deleteTranscript(string $transcriptId)

Bite Methods

  • getBites(array $fields, array $options)
  • getBite(string $biteId, array $fields)
  • getTranscriptBites(string $transcriptId, array $fields)
  • createBite(string $transcriptId, float $startTime, float $endTime)
  • updateBitePrivacy(string $biteId, array $privacies)

Meeting Methods

  • uploadAudio(string $audioUrl, array $options)
  • addToLiveMeeting(string $meetingLink)
  • getMeetingSummaries(array $fields)
  • getMeetingSummary(string $meetingId, array $fields)

AI Apps Methods

  • getAIAppsOutputs(array $options, array $fields)

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email akhmadharuna@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


This updated README:
1. Added the new AI Apps section with usage examples
2. Added the `getAIAppsOutputs` method to the Available Methods section
3. Maintained the existing structure while incorporating the new functionality
4. Removed any controller-specific implementation details to keep the focus on the package usage

The documentation now provides a clear overview of all available features, including the new AI Apps functionality, while maintaining a clean and professional format.

About

Laravel Fireflies is an elegant wrapper around the Fireflies.ai GraphQL API, providing a fluent interface for managing meeting transcriptions, summaries, and insights in your Laravel application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages