Trugen icon

Trugen

Create agents, list avatars, and fetch conversations from Trugen

Create Agent

AI-generated

Summary

Create a new conversational agent in the Trugen platform by specifying its name, system prompt, avatar, greeting message, session limits, and AI and speech service configurations.

Inputs

  • Agent Name (required) — The name to assign to the new agent.
  • System Prompt (required) — The initial system prompt setting the agent's behavior or persona.
  • Avatar Source (required) — Choose between a predefined stock avatar or manually provide an avatar ID.
  • Stock Avatar — Select a stock avatar by ID if 'Stock Avatar' is chosen as the avatar source.
  • Avatar ID — Provide a custom avatar ID if 'Manual Avatar ID' is chosen as the avatar source.
  • Greeting — Initial greeting message the agent will deliver.
  • Max Session Length (Minutes) — Maximum duration in minutes for a session before timeout.
  • LLM Provider (required) — Provider for the Large Language Model powering the agent.
  • LLM Model (OpenAI) — Model ID for OpenAI LLM when chosen as the provider.
  • LLM Model (Groq) — Model ID for Groq LLM when chosen as the provider.
  • LLM Model (Google) — Model ID for Google LLM when chosen as the provider.
  • TTS Provider (required) — Text-to-Speech provider for agent voice synthesis.
  • TTS Model (required) — TTS model ID from ElevenLabs.
  • TTS Voice ID (required) — Voice ID used for Text-to-Speech.
  • STT Provider (required) — Speech-to-Text provider to handle user speech input.
  • STT Model (required) — Model for Speech-to-Text processing.
  • STT Language (required) — Language code for Speech-to-Text transcription.
  • Record Calls — Whether to record the calls during agent interactions.
  • Callback Events — List of events that trigger callbacks to a specified URL during call lifecycle.
  • Callback URL — HTTP URL to receive webhook callbacks for selected call events.

Output shape

a single item containing the newly created agent data

The returned data includes the agent's unique ID, a direct URL to access the agent on the Trugen platform, and HTML embed code to integrate the agent in web pages.

Examples

Example 1: Create a new agent named 'SupportBot' with a custom greeting and default configurations.

Specify 'SupportBot' as the agent name, provide a system prompt, select a stock avatar or provide manual ID, set greeting, session limits, and LLM, TTS, and STT settings. Optionally, specify callback URL and events for real-time call event notifications.

Links

Discussion