make.com Vapi app outbound json structure for assi...
# support
p
I am facing issues running the assistant override in make.com's VAPI outbound app. Could you please share a sample json object that is expected to be put in the "assitant" section of the make.com's Vapi outbound app . I am unable to make this work.
v
@Prashant Certainly! To override the assistant settings in the make.com's VAPI outbound app, you'll need to provide a JSON object with the specific parameters that you want to override. Here's a sample JSON object that you might use in the "assistant" section:
Copy code
json
{
  "name": "custom_assistant",
  "language": "en-US",
  "voice": {
    "name": "en-US-Wavenet-D",
    "pitch": 0,
    "speed": 1
  },
  "context": {
    "system": {
      "user_id": "user-123"
    },
    "session": {
      "session_id": "session-456"
    }
  }
}
In this JSON: -
name
is the identifier for your custom assistant. -
language
specifies the language code (e.g., "en-US" for US English). -
voice
is an object that defines the voice to be used, including the voice name (e.g., "en-US-Wavenet-D"), pitch, and speed. -
context
is an object that can contain various contextual parameters such as system information and session details. Please ensure that the JSON object you provide matches the schema expected by the VAPI outbound app. If you continue to face issues, it might be helpful to check the documentation for any specific requirements or constraints related to the assistant configuration. If you need further assistance or if the documentation does not provide enough information, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
p
I want to update the system prompt and the first message
@Vapi I want to update the system prompt and the first message
v
@Prashant Absolutely, I'd be happy to help you with that. Could you please provide me with the details of the new system prompt and the first message you'd like to set?
v
@Prashant It seems there might have been a misunderstanding or an issue with the message delivery. If you're looking to update the system prompt and the first message, please provide me with the specific text or details you want to include in the update. Once I have that information, I can assist you further.
p
"firstMessage": "Your custom first message here" system Message: you are a helpful assistant
v
@Prashant Great, you want to set a custom first message and update the system message to reflect that the assistant is helpful. Here's how you can structure your JSON object for the "assistant" section to include these updates:
Copy code
json
{
  "assistantOverrides": {
    "firstMessageMode": "assistant-speaks-first",
    "recordingEnabled": true
  },
  "systemPrompt": {
    "message": "You are a helpful assistant."
  },
  "firstMessage": "Your custom first message here."
}
In this JSON: -
assistantOverrides
contains settings for how the assistant behaves on the first message. Setting
firstMessageMode
to
"assistant-speaks-first"
means the assistant will deliver the first message without waiting for the user to speak. -
recordingEnabled
is set to
true
to enable call recording. -
systemPrompt
is an object that includes a
message
field, which is the system message you want to set. -
firstMessage
is the custom message that will be spoken first by the assistant. Please replace
"Your custom first message here."
with the actual message you want the assistant to say when the call starts. If you need to adjust any other settings or have further questions, feel free to ask!
p
BundleValidationError Validation failed for 1 parameter(s). schema should be object or boolean
v
@Prashant The error message "BundleValidationError: Validation failed for 1 parameter(s). schema should be object or boolean" suggests that there is an issue with the format or data type of the JSON object you're providing. It's likely that the schema defined for the assistant override expects an object or a boolean value for a particular parameter, but is receiving something else. To resolve this, ensure that all parameters in your JSON object are correctly formatted and adhere to the expected schema. Here's a revised example based on the previous information you provided:
Copy code
json
{
  "assistant": {
    "firstMessage": {
      "text": "Your custom first message here",
      "mode": "assistant-speaks-first"
    },
    "systemPrompt": {
      "text": "You are a helpful assistant."
    }
  }
}
In this revised JSON: - The
assistant
object contains the override settings. -
firstMessage
is now an object with
text
and
mode
keys. -
systemPrompt
is also an object with a
text
key. Please ensure that the keys and structure of your JSON object match the schema expected by the VAPI outbound app. If you're unsure of the schema, refer to the documentation provided by make.com for the correct format. If the issue persists, please ask support for more info on this, as they may need to provide you with the exact schema or assist with troubleshooting the error.
p
I am getting the same error. BundleValidationError Validation failed for 1 parameter(s). schema should be object or boolean Origin Make
v
@Prashant I'm sorry to hear that the issue persists. The error message indicates that the JSON structure is not matching the expected schema. Since the exact schema required by the make.com VAPI outbound app is not clear from the information provided, I would recommend checking the documentation for the specific JSON structure that is expected. If the documentation does not resolve the issue, it may be necessary to contact make.com's support directly for assistance. They should be able to provide you with the correct schema or help troubleshoot the error. In the meantime, if you have any other questions or if there's anything else I can assist you with, please let me know.
p
I did, checked make.com's documentation for VAPI and Vapi's docs as well. I could find this structure or explanation anywhere. Hence I reached out here
v
@Prashant I understand the frustration when documentation doesn't provide the clarity needed. Since the error persists and the schema is not clear, the best course of action would be to reach out to make.com's support team for specific guidance on the JSON structure required for the assistant override in the VAPI outbound app. You can contact make.com's support through their official support channels, such as their help desk, support email, or community forums. When reaching out, provide them with the details of the error message and any JSON structures you've attempted to use. They should be able to provide you with the correct schema or assist with troubleshooting the error. In the meantime, if there's anything else I can do to assist you or if you have any other questions, please feel free to ask.
p
I did, they asked me to check with Vapi support
v
@Prashant I apologize for the inconvenience you're experiencing. Since the documentation from both make.com and VAPI does not provide the necessary information, and make.com's support has directed you to VAPI support, the next step is to contact VAPI support directly for assistance. You can reach out to VAPI support by sending an email with the details of your issue, including the JSON structure you've attempted to use and the specific error message you're receiving. Here is the email address for VAPI support: [support@vapi.ai](support@vapi.ai) Please provide them with as much context as possible so they can assist you effectively. If there's anything else I can help with in the meantime, please let me know.
p
@User @User Can somebody please help
s
@Prashant what's your issue exactly?
cam you share the complete json using for assistant override
p
I wasn't able to use the make.com Vapi app to update the assistant overrides
I managed with a webhook. Removed the Vapi app and replaced it with a custom webhook. It's working for now
@Shubham Bajaj
I was looking for the structure of the json object which we need to pass in assistant section of the make.com Vapi outbound app. I looked for documentation, couldn't find one.
But never mind, my custom webhook is working fine.
s
then either you or make is sending something wrong, by vapi app i assume make code for vapi integration
p
Yes, I thought so too. So I reached out to make support, they asked me to check with vapi
s
if custom webhook is working, IDK what to say but now you know how to make it work
4 Views