Helicone Community Page

Updated 8 months ago

Querying Helicone Feedback For Requests With Custom Messages

Hi, I'm working with Helicone feedback, and when a user leaves a negative rating, I'm adding a custom message. Since there isn't direct support for this yet, I'm utilizing the "after request" custom property where I save that feedback message under the key "feedbackMessage."

However, I'm encountering an issue when trying to retrieve all requests that contain my custom feedback message. The only method I've found involves using a filter, which I don't like since there isn't a direct query option for custom_properties: feedbackMessage is exist or sthm like.

Is there a better way to achieve this, or is the method I'm using currently recommended? Here's how I'm trying to query the data:

curl --request POST \ --url https://api.helicone.ai/v1/request/query \ --header 'Content-Type: application/json' \ --header 'authorization: xxxxxxxxxxxxxx' \ --data '{ "filter": { "job": { "custom_properties": { "feedbackMessage": { "not-contains": "randomvalue" } } } }
}'
J
R
6 comments
Hi! Thank you so much for your message!

WE are actually moving everything to REST from GraphQL.

So you have a feedback message and you want to query all the users where some feedback message does not contain some field. is that correct?
Nope im trying to get everything that has custom property with name feedbackMessage
and i didnt find anything like is exist, only isLike,IsContain etc .. so i have to do it like that
but im not sure if thats the way how i should querry. So do you know any better approach ?
So we added this..

https://docs.helicone.ai/rest/user/post-v1userquery
curl -X POST https://api.helicone.ai/v1/user/query -H "Authorization: Bearer sk-helicone-"

We are still working on expanding our API. Would you be willing to hop on a quick 15 minute call so I can learn more about your requirements?
Add a reply
Sign up and join the conversation on Discord