https://retellai.com/?utm_source=discord&utm_medium=seo logo
i built out a custom crm using lovable how can i c...
# ❓・ai-evy-support
z
@AI Evy i built out a custom crm using lovable how can i connect retell to that showing like live how my clients made money
a
Thanks for tagging me @zaigab. I'll look through relevant sources and get back to you shortly.
### Answer To connect Retell AI to your custom CRM built with Lovable, you'll need to integrate through webhooks and API calls [(1) ]() . For inbound calls, you'll handle the webhooks that Retell generates . For outbound calls, you can trigger calls via the Retell API . If you want to schedule calls for contacts in your CRM, you can use automation tools like Zapier or Make.com and call the create call API of Retell to start an outbound call . Alternatively, to avoid the cost of these platforms, you could run small bits of code as cloud functions, which may be more cost-effective depending on your call volume . For real-time data integration showing client revenue, you'd typically: 1. Set up webhook endpoints in your CRM to receive call events from Retell 2. Use Retell's API to trigger outbound calls when specific revenue milestones are reached 3. Configure your CRM to display live call data and outcomes The specific implementation will depend on your CRM's capabilities and whether it can make direct calls to the Retell API . If you need detailed custom CRM integration assistance, there are Retell certified partners who specialize in this type of implementation .
​ To learn more, see the sources I considered: [[1] Integration](https://discord.com/channels/1186424376300679209/1291618107999391755) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
z
Its only inbounds
@AI Evy only in bound
a
Thanks for the follow-up, @zaigab. I'll get back to you soon.
### Answer For inbound-only integration with your custom CRM, you'll need to set up an inbound call webhook at the phone number level [(1) ]() . This webhook will notify your CRM when inbound calls are received, allowing you to process them accordingly . To configure this: 1. Set the
inbound_webhook_url
when creating or updating your phone number [(2) ]() [(3) ]() :
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.create({
  inbound_webhook_url: "<https://example.com/inbound-webhook%22>
}) ;
[(3) ]() 2. Your CRM endpoint will receive a POST request with this payload structure [(1) ]() :
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
3. Your CRM can respond to override agent settings or set dynamic variables for that specific call :
Copy code
json
{
  "call_inbound": {
    "override_agent_id": "agent_12345",
    "override_agent_version": 1,
    "dynamic_variables": {
      "customer_name": "John Doe"
    },
    "metadata": {
      "random_id": "12345"
    }
  }
}
The webhook has a 10-second timeout and will retry up to 3 times if no success status is received . This allows your CRM to identify callers using the
from_number
field and process calls with relevant customer context .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[3] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
z
Do i need this to connect with n8n or its fine to direct w software give me best answer
@AI Evy Do i need this to connect with n8n or its fine to direct w software give me best answer
a
Thanks for the follow-up, @zaigab. I'll get back to you soon.
### Answer For connecting your custom CRM to Retell AI, you can integrate directly without needing n8n as an intermediary [(1) ]() . However, based on the Discord discussions, there are some important considerations when working with n8n [(2) ]() . You can set up the inbound webhook URL directly on your phone number [(3) ]() [(4) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(3) ]() The phone number configuration includes the
inbound_webhook_url
field [(3) ]() [(4) ]() :
Copy code
json
{
 "phone_number": "+14157774444",
 "phone_number_type": "retell-twilio",
 "phone_number_pretty": "+1 (415) 777-4444",
 "inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "outbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "inbound_agent_version": 1,
 "outbound_agent_version": 1,
 "area_code": 415,
 "nickname": "Frontdesk Number",
 "inbound_webhook_url": "<https://example.com/inbound-webhook%22,>
 "last_modification_timestamp": 1703413636133
}
[(3) ]() **Best approach**: Direct integration is typically more reliable than using n8n as an intermediary [(1) ]() . However, if you do use n8n, ensure your webhook handler responds immediately with a 200 OK status, then launch your workflow asynchronously [(2) ]() . The Discord discussions show that n8n workflows with delays can cause issues where the agent doesn't wait for the webhook response . For your custom CRM showing live client revenue data, direct API integration will give you better control and reliability [(1) ]() .
​ To learn more, see the sources I considered: [[1] API Integration](https://www.retellai.com/glossary/api-integration) [[2] agent is not waiting for inbound response](https://discord.com/channels/1186424376300679209/1399757938532552704) [[3] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[4] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.