- VALID
- REJECTED
- HUMAN
- COMPLETE
Our technology reaches across leading technology and enterprise teams.

Short answer
How do I stop my AI from wandering off-topic?
Use a state machine to restrict your agent to a set of predefined states and allowed transitions. This forces your agent to stay within the logic of your specific workflow. You'll see how the state transitions work below.
Where each outcome lands.
The results of enforced logic
Once the state machine is active, your agent's responses fall into these categories.
VALID
On-track responses
Your agent follows the allowed transitions. You get replies that stay strictly within the current task phase.
REJECTED
Out-of-bounds attempts
Your agent tries to jump to a state that isn't allowed. The machine blocks the drift and keeps the conversation centered.
HUMAN
Manual intervention needed
Your agent hits a state with no valid next step. You step in to guide the logic or reset the flow.
COMPLETE
Task finished
Your agent reaches the final state in your sequence. The task closes out cleanly without lingering chatter.
The workflow
What your agent does when the task arrives.
The state machine acts as a guardrail for each interaction.
Set the starting point
Your agent establishes the initial state for your specific workflow. This creates the baseline for all future turns.
initialize_fsmEvaluate the user input
Each message you send is checked against the current state. Your agent looks for a valid path forward.
process_turnEnforce transitions
Your agent only moves to a new state if the transition is explicitly permitted. This prevents your agent from skipping steps.
process_turnMaintain state integrity
Your agent updates its internal logic after each turn. This ensures the conversation stays locked to the current phase.
process_turn
Vinkius Agentic Execution Platform
State the outcome. Agents take it from there.
You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.
Run it in Vinkius
Agents carry the task to the end
Agents execute Conversation State Machine tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.
Take it to any compatible AI
One connection, any client
Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.
Spaces
One Space per activity
A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.
Limits
Autonomy inside limits you set
Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.
Record
All steps, on the record
Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.
Models
Included in your plan
A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.
Try it
Copy these to start.
Use these prompts to kick off a controlled session.
Starting points
These are opening lines. Swap out the bracketed text for your specific workflow names.
Conversation State Machine Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_hJFcajDv8B5dbsu57MATXz9NIRSdBOFA3iCHEoGr/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat, Conversation State Machine capabilities are ready to use.
{
"mcpServers": {
"conversation-state-machine-mcp": {
"url": "https://edge.vinkius.com/vk_preview_hJFcajDv8B5dbsu57MATXz9NIRSdBOFA3iCHEoGr/mcp"
}
}
}- 01
Initialize a new state machine for my customer support flow.
- 02
Start a new state machine for the onboarding process in my Slack channel.
- 03
Process the next turn for the data entry task in my spreadsheet.
- 04
Initialize a state machine for the troubleshooting sequence in my GitHub repo.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Conversation State Machine once, then ask.
Click the link to connect. Your credentials stay encrypted, and you can find the full technical details on the Connector page.
Connect Conversation State Machine to your agentFAQ
How the state machine behaves
- 01
Can your agent ignore the state machine?
No. Your agent is restricted to the transitions defined in the machine, so it cannot wander off-topic.
- 02
Does this MCP change my existing prompts?
No. It works alongside your prompts by providing a logic layer that your agent must follow.
- 03
Can your agent delete my state machine definitions?
No. The tools only allow for initialization and processing turns; they do not include deletion capabilities.
- 04
What happens if your agent tries to go to an invalid state?
The process turn will fail to find a valid transition, keeping your agent in its current state.
- 05
Can I use this to automate my entire business?
No. Your agent still requires you to define the states and handle the transitions where the logic breaks.
More questions about Conversation State Machine? The Connector page answers them. See everything the Conversation State Machine Connector can do
Building with AI? Ship this whole workflow in your product.
Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Conversation State Machine to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.
Explore Vinkius ConnectTypeScript · Python · Java · Go · C# · PHP · Rust
- 01
Your customers bring their own keys.
Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.
- 02
Whole catalog, kept current.
Conversation State Machine plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.
- 03
Any agent, any model.
Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.
Connect Conversation State Machine to Claude, Cursor, ChatGPT & more
From idea to done
See what gets done when the agents take over the busywork
Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.









