How to read the most recent message from a relevance AI conversation?

I think connections works as a tag, though I’m not totally sure.

The workflow goes as follows:

  • I send a telegram message to a telegram bot
  • on make.com, I have a module to read that message and feed it into my workflow
  • The 2nd module then sends that message to a relevance AI conversation with an AI I have
  • The 4th module takes the message fed to it from the 3rd module and sends it to me via telegram

All of the above steps work, however module 3 is not exactly doing what I was hoping it would.
It is a list messages in conversation relevance AI module, however it is presently only listing 20 messages, and they aren’t even necessarily the 20 most recent! Also, whenever it updates, it seems as though it randomly scatters the new messages around that list of 20, so the index that list has doesn’t allow me to get the most recent response from the AI using a filter.

I just need something that will let me read the response of the AI and feed it to the 4th module.

I fixed it using an HTTP make a basic auth request module. If you want to do it yourself, just do what the documentation on the “list messages in a conversation” module for relevance AI, but in a basic auth request module, and also type it out rather than copy and pasting (seems they took out the ordering messages because copy and pasting results in an error in comparison to if you simply type it out word for word, kind of like copying code into spyder from google docs).

The problem I have now is that I need it to wait until relevance AI actually give an answer. I’m currently using a 20 second sleep module, however I’d rather get it to work automatically every time. Has anyone got a suggestion for that?