Cannot get my input value from Make to Relevance AI tool

:bullseye: What is your goal?

I’m building an AI agent to scrape the web looking for leasing leads for a warehouse developer. It starts with Searching Rows with a reasonable rating nad selecting a number of company names. Then I’d like to take each company name and give it to the Relevance AI tool.

:thinking: What is the problem?

Scenario runs properly, but I have no clue how to make Relevance AI receive the data correctly. I can see that the input actually reaches Relevance, but it does not fuel the tool.

I get back an error “Studio Params Validation Error: must be object {“type”:“object”} /payload”

I also have no clue how to change the title of the variable.

Any help or indication of what’s wrong would be a great help to me.

Thanks

:camera_with_flash: Screenshots: scenario setup, module configuration, errors


1 Like

Hello @7RSA,

Relevance expects a JSON object payload:

According to your screenshot, you are sending it as a plain text string. It won’t work.

You must send a JSON object.

You can try with:

{ "payload": { "data": "{{1.yourmapping}}" } }

But that’s only generic - the expected JSON structure should be configured in Relevance and used in Make’s requests.

Once you establish the correct JSON structure, you should work on JSON sanitization - if the company name contains " characters or other forbidden special characters, your scenario will fail.

Have a nice day,
Michal

1 Like

Hey @7RSA

The error shows Relevance AI expects an object but you’re sending raw text. Here’s the fix:

Problem: You’re passing company names as simple strings, but Relevance AI needs structured JSON.

Solution - Add Set Variables Module:

Between your Google Sheets and Relevance AI, add Tools > Set Multiple Variables:

Variable Name: company_data
Value: {
  "company_name": "{{sheets.company_name}}",
  "search_query": "{{sheets.company_name}} warehouse leasing requirements"
}

In Relevance AI Module:

  • Payload: Use {{set_variables.company_data}} (not raw company name)
  • Content-Type: application/json

Alternative - Direct JSON in Relevance AI:
If no Set Variables module, format directly in Relevance AI payload:

{
  "company": "{{sheets.company_name}}",
  "task": "find warehouse leasing leads"
}

Variable Title Issue:
In the Set Variables module, the “Variable Name” field becomes your reference title - name it something clear like company_payload or search_data.

Debug Tip:
Test by sending the payload to a simple webhook first to verify the JSON structure before connecting to Relevance AI.

The key is wrapping your data in a proper JSON object structure instead of sending raw strings.

Sam @ Flow Digital
Sr Automation Specialist

1 Like

Hi Guys,

I managed to sort this out - the issue was in RelevanceAI.

In the tool input options you need to specify the JSON Schema to avoid validation issues.

Below is the mock schema I used:

{
  "properties": {
    "list": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "Name",
        ],
        "additionalProperties": false,
        "properties": {
          "Name": {
            "type": "string",
            "minLength": 1,
            "description": "Mock descrption"
          }
        }
      }
    }
  },
  "required": [
    "list"
  ]
}

Thanks for all the help everyone!

2 Likes

Thanks for taking the time to come back here and let us all know, @7RSA ! Always appreciated :slight_smile:

1 Like