UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

43 lines (42 loc) 1.8 kB
/** * This file was auto-generated by Fern from our API Definition. */ import * as Phonic from "../index.js"; /** * When an `agent` is provided, these `config` options override the agent settings. */ export interface OutboundCallConfig { /** The name of the agent to use for the call. */ agent?: string; /** The name of the project to use for the call. */ project?: string; /** Message to play when the conversation starts. Can contain template variables like `{{customer_name}}`. */ welcome_message?: string | null; /** Instructions for the conversation. Can contain template variables like `{{subject}}`. */ system_prompt?: string; /** Variables that can be used in the welcome message and the system prompt. */ template_variables?: Record<string, string>; /** The voice ID to use for the agent. */ voice_id?: string; /** Number of seconds of silence before sending a poke message. `null` disables the poke message. */ no_input_poke_sec?: number | null; /** The message to send after the specified silence. */ no_input_poke_text?: string; /** Seconds of silence before ending the conversation. */ no_input_end_conversation_sec?: number; /** Array of ISO 639-1 language codes that the agent should be able to recognize */ languages?: Phonic.LanguageCode[]; /** These words, or short phrases, will be more accurately recognized by the agent. */ boosted_keywords?: string[]; /** Array of built-in or custom tool names to use. */ tools?: OutboundCallConfig.Tools.Item[]; } export declare namespace OutboundCallConfig { type Tools = Tools.Item[]; namespace Tools { type Item = "keypad_input" | "natural_conversation_ending" /** * Custom tool */ | string; } }