Skillful Agents Quick Start Guide
Skillful Agents Quick Start GuideAdding Your First Agent
Adding Your First AgentMethod 1: Adding Through Code
Method 1: Adding Through Codeusing SkillfulAI.Agents;
using UnityEngine;
public class ExampleAgent : MonoBehaviour
{
private void Start()
{
// Add the Skillful Agent component to this GameObject
SkillfulAgent agent = gameObject.AddComponent<SkillfulAgent>();
// Select your agent by its dashboard name
agent.SelectAgentByName("YourAgentNameHere");
// Send your first message
agent.SendMessage("Hello, who are you?", response => {
// Log the AI's response
Debug.Log(response.text);
});
}
}Method 2: Using the Unity Inspector
Method 2: Using the Unity InspectorBuilding Interactive Conversations
Building Interactive ConversationsHandling Multiple Agents
Handling Multiple AgentsAdding Basic Error Handling
Adding Basic Error HandlingNext Steps
Last updated
