Send your first phone call
Step 1: Setup Your Authorization
Before making a call, you need to authenticate your request. Make sure you have your API key ready.
Sign up on the developer portal to get yours.
Step 2: Prepare the Call Data
You will need to provide specific details for the call. These include:
phone_number
: : The number you want to call. Remember to include the country codetask
: : Describe the purpose of the call and how the AI should handle the conversation.voice_id
: : Choose the voice persona (American male, Australian female, etc.) based on your preference.- Set parameters like
reduce_latency
,record
,amd
(for navigating phone trees), andwait_for_greeting
according to your call’s requirements.
Step 3: Customize the call
You can further personalize the call by:
- Setting a first_sentence for the call.
- Specifying dynamic_data to incorporate external API data.
- Adjusting voice_settings for stability, similarity, and speed.
- Choosing the language with the language parameter.
- Setting a max_duration for the call.
Step 4: Send the API Request
Use the provided JavaScript or Python code snippet to make the API request.
Step 5: Handle the Response
After the call, you will receive a response with the status and call_id. If you set record to true, you can retrieve the recording using the /call/recording endpoint.
Here’s what an example response might look like:
Step 6: Monitor the Call
If you have set up a webhook, you will receive real-time notifications and transcripts once the call completes.
And that’s it! You’re now ready to make your first AI-powered phone call with Luly AI. Happy calling!