BlogRegister
    DOCS // QUICK START

    Retrieve context before the conversation starts.

    The basic implementation pattern is context first, then workflow-connected voice.

    Example

    Use the SDK to retrieve MotionOS context and pass it into Voice AI.

    onebudd.ts
    import { OneBuddClient } from "@onebudd/sdk";
    
    const onebudd = new OneBuddClient({
      apiKey: process.env.ONEBUDD_API_KEY
    });
    
    const context = await onebudd.motion.context.get({
      customerId: "cus_42",
      include: ["tickets", "calls", "handoffs", "next_actions"]
    });
    
    await onebudd.voice.calls.create({
      to: "+14155550100",
      agent: "support_followup",
      context
    });