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 🚀

No fuss no hassle AI Agent setup on voipnumber.net

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

  1. 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

  1. Configure SPEECH TO TEXT

Select engine and input speech language (caller's language)

  1. 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

  1. 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

  1. 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)

  2. Place Incoming Call, End, AI Agent and Echo actions on the call flow pane. Click AI Agent action and select your agent. Click Echo 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)

  1. Connect actions together. Click Validate and Save

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

  1. Go to trunks tab at app.voipnumber.net/trunks and click ADD

  2. Name your trunk

  3. On TRUNK IN settings enable SIP and type in a subdomain (this defines SIP address for your trunk)

Here we have selected adam as a subdomain

💡 Enable PSTN to dial agent from public telephony

  1. At the PROCESSING step select a Call Flow with your agent

  1. 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