curl --request POST \
--url https://api.trugen.ai/v1/ext/externalmeeting \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"agent_id": "agt_12345",
"meeting_url": "https://meet.google.com/abc-defg-hij",
"user_name": "Alex: AI Assistant",
"user_id": "meeting-2026-07-30-abc",
"context": "This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.",
"wake_phrase": "<string>",
"mode": "<string>"
}
'import requests
url = "https://api.trugen.ai/v1/ext/externalmeeting"
payload = {
"agent_id": "agt_12345",
"meeting_url": "https://meet.google.com/abc-defg-hij",
"user_name": "Alex: AI Assistant",
"user_id": "meeting-2026-07-30-abc",
"context": "This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.",
"wake_phrase": "<string>",
"mode": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 'agt_12345',
meeting_url: 'https://meet.google.com/abc-defg-hij',
user_name: 'Alex: AI Assistant',
user_id: 'meeting-2026-07-30-abc',
context: 'This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.',
wake_phrase: '<string>',
mode: '<string>'
})
};
fetch('https://api.trugen.ai/v1/ext/externalmeeting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.trugen.ai/v1/ext/externalmeeting",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 'agt_12345',
'meeting_url' => 'https://meet.google.com/abc-defg-hij',
'user_name' => 'Alex: AI Assistant',
'user_id' => 'meeting-2026-07-30-abc',
'context' => 'This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.',
'wake_phrase' => '<string>',
'mode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trugen.ai/v1/ext/externalmeeting"
payload := strings.NewReader("{\n \"agent_id\": \"agt_12345\",\n \"meeting_url\": \"https://meet.google.com/abc-defg-hij\",\n \"user_name\": \"Alex: AI Assistant\",\n \"user_id\": \"meeting-2026-07-30-abc\",\n \"context\": \"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.\",\n \"wake_phrase\": \"<string>\",\n \"mode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.trugen.ai/v1/ext/externalmeeting")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"agt_12345\",\n \"meeting_url\": \"https://meet.google.com/abc-defg-hij\",\n \"user_name\": \"Alex: AI Assistant\",\n \"user_id\": \"meeting-2026-07-30-abc\",\n \"context\": \"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.\",\n \"wake_phrase\": \"<string>\",\n \"mode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trugen.ai/v1/ext/externalmeeting")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": \"agt_12345\",\n \"meeting_url\": \"https://meet.google.com/abc-defg-hij\",\n \"user_name\": \"Alex: AI Assistant\",\n \"user_id\": \"meeting-2026-07-30-abc\",\n \"context\": \"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.\",\n \"wake_phrase\": \"<string>\",\n \"mode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body"Agent request successfully created.""Unable to create agent request."Join External Meeting
Send a TruGen agent into a live external meeting (Google Meet, Zoom, Microsoft Teams). The agent joins as a participant, listens, speaks, and captures a full transcript. Requires x-api-key authentication.
curl --request POST \
--url https://api.trugen.ai/v1/ext/externalmeeting \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"agent_id": "agt_12345",
"meeting_url": "https://meet.google.com/abc-defg-hij",
"user_name": "Alex: AI Assistant",
"user_id": "meeting-2026-07-30-abc",
"context": "This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.",
"wake_phrase": "<string>",
"mode": "<string>"
}
'import requests
url = "https://api.trugen.ai/v1/ext/externalmeeting"
payload = {
"agent_id": "agt_12345",
"meeting_url": "https://meet.google.com/abc-defg-hij",
"user_name": "Alex: AI Assistant",
"user_id": "meeting-2026-07-30-abc",
"context": "This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.",
"wake_phrase": "<string>",
"mode": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 'agt_12345',
meeting_url: 'https://meet.google.com/abc-defg-hij',
user_name: 'Alex: AI Assistant',
user_id: 'meeting-2026-07-30-abc',
context: 'This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.',
wake_phrase: '<string>',
mode: '<string>'
})
};
fetch('https://api.trugen.ai/v1/ext/externalmeeting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.trugen.ai/v1/ext/externalmeeting",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 'agt_12345',
'meeting_url' => 'https://meet.google.com/abc-defg-hij',
'user_name' => 'Alex: AI Assistant',
'user_id' => 'meeting-2026-07-30-abc',
'context' => 'This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.',
'wake_phrase' => '<string>',
'mode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trugen.ai/v1/ext/externalmeeting"
payload := strings.NewReader("{\n \"agent_id\": \"agt_12345\",\n \"meeting_url\": \"https://meet.google.com/abc-defg-hij\",\n \"user_name\": \"Alex: AI Assistant\",\n \"user_id\": \"meeting-2026-07-30-abc\",\n \"context\": \"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.\",\n \"wake_phrase\": \"<string>\",\n \"mode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.trugen.ai/v1/ext/externalmeeting")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"agt_12345\",\n \"meeting_url\": \"https://meet.google.com/abc-defg-hij\",\n \"user_name\": \"Alex: AI Assistant\",\n \"user_id\": \"meeting-2026-07-30-abc\",\n \"context\": \"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.\",\n \"wake_phrase\": \"<string>\",\n \"mode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trugen.ai/v1/ext/externalmeeting")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": \"agt_12345\",\n \"meeting_url\": \"https://meet.google.com/abc-defg-hij\",\n \"user_name\": \"Alex: AI Assistant\",\n \"user_id\": \"meeting-2026-07-30-abc\",\n \"context\": \"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role.\",\n \"wake_phrase\": \"<string>\",\n \"mode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body"Agent request successfully created.""Unable to create agent request."Authorizations
Body
ID of the agent to send into the meeting.
"agt_12345"
Full URL of the Google Meet, Zoom, or Teams meeting the agent should join.
"https://meet.google.com/abc-defg-hij"
Display name the agent uses in the meeting.
"Alex: AI Assistant"
Identifier for this session — used in analytics and callbacks.
"meeting-2026-07-30-abc"
Free-form conversational context passed to the agent's system prompt.
"This is a hiring interview. The candidate is Priya Sharma for the Senior Engineer role."
Optional phrase the agent listens for before speaking (useful in silent-observer mode).
Session mode.
Response
Agent request accepted
The response is of type string.
Was this page helpful?