🏆 1st Place ElevenLabs Hackathon – $20,000🚀 EBRD Star Venture Program🥈 2nd Place Sevan Startup Summit🚀 Google Cloud $25K Grant
Kallina AI
RO
Kallina Voice AI

Function Calling Voice AI

Conectează voice AI-ul la orice API. Function calling în timp real.

Ce Este Function Calling

Function calling permite AI-ului să execute acțiuni reale: să caute în CRM, să programeze întâlniri, să verifice stocuri. Transformă conversația în acțiune.

Real-time
Execution în conversație
Any API
REST, GraphQL, SOAP
Parallel
Multiple calls simultane

Function Types

TypeExamplesTypical Latency
Data RetrievalCRM lookup, order status, inventory checkLow (100-500ms)
ActionsBook appointment, send email, create ticketMedium (500-2000ms)
CalculationsPrice quote, availability checkLow (50-200ms)
External APIsWeather, shipping rates, paymentVariable

Function Definition Example

const functions = [{
  name: "get_order_status",
  description: "Retrieve the current status of a customer order. Use when customer asks about their order, delivery, or shipment.",
  parameters: {
    type: "object",
    properties: {
      order_id: {
        type: "string",
        description: "Order ID (format: ORD-XXXXX or just the numbers)"
      },
      customer_email: {
        type: "string",
        description: "Customer email for verification (optional)"
      }
    },
    required: ["order_id"]
  }
}];

// Handler function
async function get_order_status({ order_id, customer_email }) {
  try {
    const order = await db.orders.findOne({
      id: normalizeOrderId(order_id)
    });

    if (!order) {
      return { error: "Order not found", suggestion: "verify_order_id" };
    }

    return {
      status: order.status,
      estimated_delivery: order.eta,
      tracking_number: order.tracking,
      last_update: order.updated_at
    };
  } catch (error) {
    return { error: "System temporarily unavailable" };
  }
}

Execution Flow

1
User speaks: "Unde este comanda mea 12345?"
2
LLM decides: Call get_order_status(order_id: "12345")
3
Function executes: Query database, return status
4
LLM responds: "Comanda ta este în drum și ajunge mâine."

Best Practices

Clear Descriptions

Write detailed function descriptions - LLM uses them to decide when to call

Validate Parameters

Validate all parameters before execution to avoid errors

Handle Timeouts

Set reasonable timeouts (3-5s) and have fallback messages

Parallel When Possible

Use parallel function calling for independent operations

Graceful Errors

Return helpful error messages the AI can relay to user

Kallina: Pre-Built Functions

Library de funcții pentru CRM, calendar, ticketing și mai mult.

Vezi Demo →
Începe Astăzi

Transformă Comunicarea cu Clienții

Agenți vocali AI care răspund 24/7 în română și rusă. Implementare în 2 săptămâni, fără infrastructură specială.

Setup în 24 oreSuport dedicatGDPR compliant

Rămâi la curent

Obține cele mai recente știri despre tehnologia de apelare AI și actualizările platformei

Made with ♡ by Kallina AI Team — 2025