Struggeling with 422 Error returns from mistral.ai

I am currently using mistral.ai and got it working just fine. Now I want to use more sophisticated functions like agents and tools. Whenever I try using those function, I get an error 422 in return with no further explanation.

  1. I call agents directly with the a API Call (Screenshots provided)
  2. I call functions via the advanced options (Screenshots provided)

Since both calls get me the 422 error, I feel I lack some basic understanding but cannot figure out what I am missing.

Any help would be highly appreciated.




Had this due to missing content-length header. You can set this with the legth function and passing your pody as is to it.

e.g. length({“agent_id”: “ag:xxxx”, “messages”…})

Welcome to the Make community!

You need to convert the 1.prompt variable to a JSON string first before you can append it into another JSON string.

To do this, you can try using the JSON “Transform to JSON” module —

Transforms any object to JSON.

For more information, see https://www.make.com/en/integrations/json, and https://www.make.com/en/help/app/json in the help centre.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.