https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can I copy and paste an agent
# ❓・ai-evy-support
m
@AI Evy Can I copy and paste an agent? so I have 2 agents?
a
Thanks for tagging me @Michael. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Is there a way to duplicate an agent using the typescript sdk?](https://discord.com/channels/1186424376300679209/1335735263288098857) ​
### Answer There isn't a direct "duplicate agent" button in the dashboard, but you can achieve this programmatically using the API. To create a duplicate agent, you would: 1. Use the [Create Agent API]() to create a new agent with the same configuration [(1) ]() 2. Use the [Create Retell LLM API]() to duplicate the LLM configuration (which includes the prompt, welcome message, etc.) Essentially, you'd retrieve the configuration from your existing agent and LLM, then use those values when calling the create endpoints for the new agent.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy How do I connect to my retellAI from my linux server?
a
Thanks for the follow-up, @Michael. I'll get back to you soon.
### Answer To connect to Retell AI from your Linux server, you'll authenticate using your API key via the REST API. Authentication: Include your API key in request headers: [(1) ]()
Copy code
Authorization: Bearer YOUR_API_KEY
Example using the SDK (Node.js/TypeScript) : [(2) ]()
Copy code
javascript
import Retell from 'retell-sdk';

const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
Steps: 1. Get your API key from the dashboard under "API Keys" in Settings [(3) ]() 2. Install the Retell SDK for your preferred language (e.g.,
npm install retell-sdk
for Node.js) 3. Use the API key in your server code to make authenticated requests You can manage your API keys (create, delete, or set webhook keys) from the dashboard. If you need more specific guidance on a particular use case (phone calls, web calls, etc.) or a specific programming language, let me know!
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) [[3] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.