const agent = await nxf.create({
name: 'Reception',
prompt: 'You are a friendly...',
voice: 'sophie',
language: 'en-GB',
phone: '+447911123456',
webhook: 'https://you.com/calls'
})
// Calls are now answered by AI.
// POST to your webhook after each call
{
"call_id": "nxf_8f2a...",
"duration": "2:34",
"sentiment": "positive",
"summary": "Booked table for 4...",
"transcript": "[full text]",
"recording_url": "https://..."
}
const call = await nxf.call({
agent: 'agent_id',
to: '+447700900000',
context: 'Remind about appointment'
})
// AI calls the number and handles
// the conversation automatically.