token: ********************curl --location --request GET 'https://staging-api.formi.co.in/v2/agents/7/config/model/draft' \
--header 'token: <api-key>'{
"success": true,
"message": "Draft found",
"payload": {
"draft_id": 17,
"agent_id": 5,
"status": "draft",
"config_snapshot": {
"agent_name": "Formi Sales Bot",
"main_prompt": "You are a helpful sales assistant...",
"agent_configuration": {
"LLM": {
"conversation_llm": {
"model_name": "gpt-4o",
"temperature": 0.7
}
},
"TTS": {
"provider": "elevenlabs",
"voice_id": "abc123"
},
"STT": {
"provider": "deepgram",
"language": "en-IN"
},
"welcome_message": "Hello! How can I help you today?"
},
"state_machine": {
"states": [
{
"state_id": 10,
"name": "greeting_state",
"template_id": 3,
"state_prompt": "",
"variables": {
"tone": "friendly"
}
}
],
"edges": [
{
"edge_id": 42,
"from_node": 10,
"to_node": 11,
"prompt": "If the user says goodbye, transition.",
"transition_metadata": {}
}
]
},
"connection_config": {}
},
"created_at": "2026-05-01T10:30:00+05:30"
}
}