Examples

Coming Soon

Example use cases for the SDK.

Schedule a Meeting

const slots = await synced.availability.getRecommended({
  participants: ['sarah@acme.com', 'james@globex.io'],
  duration: '30 mins',
  timeRange: 'within_1_week'
});

const meeting = await synced.meetings.create({
  title: 'Product Sync',
  startTime: slots[0].startTime,
  duration: '30 mins',
  participants: ['sarah@acme.com', 'james@globex.io']
});

console.log('Meeting booked:', meeting.id);

AI Agent Integration

// In your AI agent's tool handler
async function handleScheduleRequest(userMessage: string) {
  const parsed = await synced.schedule.fromNaturalLanguage({
    message: userMessage
  });

  if (parsed.suggestedSlots.length > 0) {
    const meeting = await synced.meetings.create({
      title: parsed.title,
      startTime: parsed.suggestedSlots[0].startTime,
      duration: parsed.duration,
      participants: parsed.participants
    });
    return `Meeting booked: ${meeting.title} at ${meeting.startTime}`;
  }
  return 'No available slots found.';
}