Skip to content
Last updated

Examples

Quick Start

Through this quick start, you'll get a meetingbot in your meeting in a matter of seconds.

import { createClient } from '@skribby/sdk';

const client = createClient({
  api_key: 'SKRIBBY_API_KEY',
});

const bot = client.createBot({
  bot_name: 'My Meeting Bot',
  meeting_url: 'https://meet.google.com/abc-defg-hij',
  service: 'gmeet',
  transcription_model: 'whisper',
});

Listen to realtime transcription

Notice

Your selected transcription_model must support realtime for this to work.

import { createClient } from '@skribby/sdk';

const client = createClient({
  api_key: 'SKRIBBY_API_KEY',
});

(async () => {
  const bot = await client.createBot({
    bot_name: 'My Meeting Bot',
    meeting_url: 'https://meet.google.com/abc-defg-hij',
    service: 'gmeet',
    transcription_model: 'deepgram-realtime',
  });

  const realtimeClient = bot.getRealtimeClient();
  realtimeClient.on('ts', data => {
    console.log(`${data.speaker_name} said: ${data.transcript}`);
  });
  await realtimeClient.connect();
})();

Basic agentic capabilities

Notice

Your selected transcription_model must support realtime for this to work.

import { createClient } from '@skribby/sdk';

const client = createClient({
  api_key: 'SKRIBBY_API_KEY',
});

(async () => {
  const bot = await client.createBot({
    bot_name: 'My Meeting Bot',
    meeting_url: 'https://meet.google.com/abc-defg-hij',
    service: 'gmeet',
    transcription_model: 'deepgram-realtime',
  });

  const realtimeClient = bot.getRealtimeClient();
  realtimeClient.on('ts', data => {

    // If the user says "hello", let's say hello back in chat!
    if (data.transcript.toLowerCase().includes('hello')) {
      realtimeClient.send('chat-message', {
        content: 'Hello back!'
      });
    }

    // If the user says "end the meeting", let's stop the bot.
    if (data.transcript.toLowerCase().includes('end the meeting')) {
      realtimeClient.send('stop');
    }

  });
  await realtimeClient.connect();
})();

If you have more examples you'd like to see, let us know in Discord!