code is below
# office-hours
a
code is below
Copy code
const twilio = require("twilio");

const ACCOUNT_SID = "xxxxxxx";
const AUTH_TOKEN = "xxxxxxx";

const client = twilio(ACCOUNT_SID, AUTH_TOKEN);

// Call your Indian number
client.calls
  .create({
    url: "https://api.vapi.ai/webhooks/voice/assistantId",
    to: "+9199xxxx", // Your Indian number
    from: "+18126xxxxx", // Your Twilio number
  })
  .then((call) => console.log("Call SID:", call.sid))
  .catch((err) => console.error("Call failed:", err));
s
@anuj846k To make outbound calls to non-verified numbers from your Twilio number, you must recharge your Twilio wallet.
m
Ok thank you Shubham. Much appreciated
a
No it's verified basically I want to call the no that i attached to vapi but due to international call charges i can't
So I am basically trying to talk to vapi assistant and log the conversation in my website is that possible? If yes then how @Shubham Bajaj
or should i simulate the call through website for demo ?
@Kings_big💫 @Shubham Bajaj
So the call got connected and it's working now
How can I log the call conversation in my website is there any way for this
??
@Shubham Bajaj
s
@anuj846k You can use clientMessages of type transcript to show realtime conversation on your website. https://docs.vapi.ai/api-reference/assistants/create#request.body.clientMessages
2 Views