Documentation Index
Fetch the complete documentation index at: https://docs.oasis.camel-ai.org/llms.txt
Use this file to discover all available pages before exploring further.
Interview
This cookbook demonstrates how to use the INTERVIEW action type to conduct interviews with AI agents in a Twitter simulation. The interview functionality allows you to ask specific questions to agents and collect their responses, which is useful for research, opinion polling, and understanding agent behaviors.Overview
The INTERVIEW action type enables you to:- Ask specific questions to individual agents
- Collect structured responses from agents
- Store interview data in the database for analysis
- Conduct interviews alongside regular social media interactions
Key Features
- Manual Interview Actions: Use
ManualActionwithActionType.INTERVIEWto conduct interviews - Automatic Response Collection: The system automatically collects and stores agent responses
- Database Storage: All interview data is stored in the trace table for later analysis
- Concurrent Execution: Interviews can be conducted alongside other social media actions
Important Note
Do NOT includeActionType.INTERVIEW in the available_actions list when creating your agent graph. The interview action is designed to be used only manually by researchers/developers, not automatically selected by LLM agents. Including it in available_actions would allow agents to interview each other automatically, which is typically not desired behavior.
Complete Example
How It Works
1. Setup and Configuration
Important: Do NOT includeActionType.INTERVIEW in your available actions list. Interviews should only be conducted manually:
ManualAction.
2. Conducting Interviews
UseManualAction with ActionType.INTERVIEW to conduct interviews:
3. Multiple Interviews in One Step
You can interview multiple agents simultaneously:4. Mixing Interviews with Other Actions
Interviews can be conducted alongside regular social media actions:Data Storage and Retrieval
Database Schema
Interview data is stored in thetrace table with the following structure:
user_id: The ID of the interviewed agentaction: Set toActionType.INTERVIEW.valueinfo: JSON string containing interview detailscreated_at: Timestamp of the interview
Retrieving Interview Results
Interview Data Structure
Each interview record contains:prompt: The question asked to the agentinterview_id: Unique identifier for the interviewresponse: The agent’s response to the question
Best Practices
1. Strategic Interview Timing
Conduct interviews at strategic points in your simulation:- After controversial posts to gauge reactions
- Before and after significant events
- At regular intervals to track opinion changes
2. Question Design
Design effective interview questions:- Be specific and clear
- Avoid leading questions
- Ask open-ended questions for richer responses