Vapis ability to recognize call backs, distinguish...
# support
d
Is it currently possible (Vapi GHL Connection) for Vapi to call and they answer and say something like "now isnt a good time" they hang up, but the GHL workflow sequence calls for a follow up call the next day in an attempt to book a meeting, so vapi calls the next day and this is where my question is, can Vapi respond "hey i know we spoke yesterday, but..." but only uses that line when a booking attempt was already made, but wasnt necessarily an objection so a call back would make sense.
v
You can achieve callback recognition by using a server endpoint to personalize the assistant's greeting based on call history. For example, when Vapi sends an
assistant-request
, your server can check if the caller had a previous booking attempt and respond with a custom greeting:
Copy code
js
// Example: Node.js endpoint for Vapi assistant-request
app.post("/api/assistant-selector", async (req, res) => {
  const phone = req.body.call.from.phoneNumber;
  const lastCall = await db.getLastCall(phone);
  const greeting = lastCall?.bookingAttempt
    ? "Hey, I know we spoke yesterday, but..."
    : "Hi, how can I help you today?";
  res.json({
    assistant: {
      ...yourAssistantConfig,
      model: { ...yourModelConfig, messages: [{ role: "system", content: greeting }] }
    }
  });
});
This lets Vapi use a different greeting for callbacks, based on your own call tracking logic ([see docs](https://docs.vapi.ai/assistants/personalization)). Source: - [Personalization with user information](https://docs.vapi.ai/assistants/personalization)
v
Message marked as helpful by @dfuna! 🎉
c
Hello, Sorry for the inconvenience and thanks for your patience. Don’t hesitate to contact us again let us know if you need further assistance.