N8n & vapi inbound outbound calls

Hello.

Im building a workflow between n8n and vapi and I was wondering if there was a way to change the first message based on if it is an outbound or inbound call.

When I do outbound calls my voice assistant asks “Hello is this {{first_name}}?”

However, for inbound call it doesnt know their name. How can I deal with this?

Would you like to show us your workflow? Maybe what data comes in to the workflow?

thats the thing there is no data on inbound calls. I only have the n8n workflow for outbound. Im not sure how I should proceed for inbound between n8n and vapi

I’d assume you’d have to setup a webhook in vapi to send the request to n8n, where it will be ingested through the webhook trigger node.