AI Agent with Groq LLM
Let your digital employee serve customers 24 hours a day
Overview
There is nothing less complex than setting up an AI Agent on app.voipnumber.net
And there's no better platform for AI Agents than VoIP Number because VoIP Number is genuine SIP and media stack, native for AI and voice integrations (that means that your media is processed on VoIP Number instead of 3rd party provider)
Let's go 🚀
Setup
We need to create AI Agent and combine this with Call Flow and Trunk to enable calling from SIP. For public telephony calling we also need a Number
AI Agent
First, we create an AI Agent
Go to agents tab at the app.voipnumber.net/aiagents and click ADD
. This opens up new agent's config. Let's name our agent and configure 3 sections:
SPEECH TO TEXT
AI INFERENCE
TEXT TO SPEECH
Each of them is responsible for a single step of the pipeline that your agent executes continuously on caller's input speech
Configure
SPEECH TO TEXT
Select engine
and input speech language
(caller's language)

Configure
AI INFERENCE
Select your preferred engine
(e.g. Groq for fast AI inference), LLM's language
(language of your Instructions
prompt and LLM model) and LLM model
.
If you want agent to get proactive and start speaking immediately, enable Greeting
under Behaviour
settings and type what should be spoken
And the best part. Instructions
is where you give your agent personality and orders to execute. This is a place for you to shine. Usually, more detail you tell to your agent, the better it works, more closely matches with your expectations
Experiment and iterate. You'll make it perfect

Configure
TEXT TO SPEECH
Here you define how your agent sounds. Select output speech engine
, language
and voice

Click SAVE
and AI Agent is ready ✅
Call Flow
Now we need a Call Flow to serve this agent on a call
Go to Call Flow Builder 👷🏼🔧 on your app.voipnumber.net/callflowbuilder or to Call Flows page at app.voipnumber.net/callflows and select
+Add
(or+New
). Name your Call Flow and open in Call Flow Builder (it will open automatically if you created new from Call Flow Builder tab)Place
Incoming Call
,End
,AI Agent
andEcho
actions on the call flow pane. ClickAI Agent
action and select your agent. ClickEcho
action and enable attenuation by 100 dB to silence out input speech

💡 If you want input speech to be played back to yourself together with agent's voice, leave Attenuate
switch disabled (or select appropriate amount of attenuation)
Connect actions together. Click
Validate
andSave
Your Call Flow with new agent is now ready and it may run on a call coming to Connection or/and to Trunk ✅
Trunk
Let's call it via Trunk
Go to trunks tab at app.voipnumber.net/trunks and click
ADD
Name your trunk
On
TRUNK IN
settings enableSIP
and type in a subdomain (this defines SIP address for your trunk)

💡 Enable PSTN
to dial agent from public telephony

At the
PROCESSING
step select a Call Flow with your agent

Click
SAVE
✅ You now have created AI Agent that can be dialled from SIP and from public telephony
Dial from SIP
dial any extension on your trunk, e.g. blah@YOUR_TRUNK_NAME.voipnumber.net
(replace YOUR_TRUNK_NAME with subdomain name of your trunk)
Dial from public telephony
Dial a number you've selected for PSTN calling on your Trunk

Last updated