Connect an Agent
Connect your AI agent to 2LY with a workflow
Connect your AI agent to 2LY's platform using one of the supported integrations.
Step 1: Create Your Agent Project
Important: Start by creating a new project in your chosen agent framework first.
Step 2: Connect Agent to 2LY
Once your agent project is created, connect it to 2LY through the web interface.
Access 2LY Dashboard
- Open 2LY: Navigate to http://localhost:8888
- Go to Agents: Click on the "Add Agents" section in the navigation
- Select Agents: Select your framework
Agent Connection Process
The connection process currently involve a one-time code config in your agent. You can do it directly by copy/paste it:
Step 3: Verify Connection
Connection Verification
Once your agent is connected, you will see it appear on the right side of the workflow screen.
Quick Test
Test your agent connection:
- LangChain: Run
python agent.pylocally - N8N: Trigger your workflow via webhook
- LangFlow: Execute your flow in the interface
Troubleshooting
If your agent doesn't appear:
- Ensure your agent code is running
- Check 2LY is accessible at http://localhost:8888
- Review agent logs for connection errors
Next Steps
Your agent is now connected to 2LY! Next steps:
- Connect Tools - Add MCP tools for your agent to use
- Deploy and Run - Link tools to agents and test execution
- Agent Integration Guides - Platform-specific documentation
Key Points to Remember
- No 2LY Configuration: Agents connect directly without needing setup in 2LY
- Automatic Discovery: Connected agents appear automatically in the dashboard
- Framework Agnostic: LangChain, N8N, and LangFlow all work the same way
- Ready for Tools: Once connected, agents can access any configured tools
Your agent is ready to start using 2LY's tool ecosystem!