Is it possible to edit text from an API that is dynamic in the workflow so that where the returned value of ** around certain phrases and titles is turned into for example
Yep, possible. What does your setup look like atm?
Do you mean the workflow? A query gets asked by a user and sent to an API. The API returns a response and the result in displayed in a group on the page
Sorry for the slow reply I didn’t see this response
If you can show us a snip of what the WF step looks like with the text we can try to help.
Dynamic needs to be set up in the endpoint, tested with actual values, and then you have to use dynamic values in the workflow step. But once you figure it out you can do it!
Just send a snip of your API endpoint and the WF step and maybe someone can help!
Is this the snip you are looking for or do you want the bubble.io step by step piece at the bottom as well?
Can you also send a snip of the API endpoint from the API Connector? Like where you put your Perplexity credentials/ input the cURL command?
Ok so I can’t see the part right above, but Bubble requires the use of [ ] in the URL params for the key value of what you’re wanting to refer to for your dynamic values.
What you put in the [ ] is what your dynamic value will be that you reference when you’re creating the workflow steps.
But for the endpoint Body, you actually put in a real value to test it.
Then you replace those with the dynamic values in the WFs.
Here’s an example setup for a PUT command. The red circle is the value that is dynamic, and I got the reference for this from the host’s docs.
Then, in the URL parameters section, the Key will pre-fill with that value, and you provide an actual test value to try.
Then in the Body fill in what you want to get from that call to test it.
Later, the WF step allows for this:
You can see the dynamic value on the path refers to the key and term that I put in the [ ] in the URL path. The value that you put in your Key for the test will automatically populate here, but you can delete and use your dynamic value there.
Then I just replaced the actual values from the test Body with my dynamic values from the form the person just filled out.
I realize my use case is really different, and I am not an expert, but the dynamic values on the API calls were so tough to figure out and this is working well for us, so I hope this helps connect a missing link so you can make it work too.
(someone please correct if I have erred.)
I’ll give that a go and get back to you.
Also struggling with passing data from that API to Grok. I’ve tried JSON safe formatting etc but it is just 50/50 if it results in an error. Any idea how I could make the API result sendable to Grok?
No experience there, but it sounds like you would need to store the result in your DB, then have a separate API set up with Grok, and then send the saved result via an API call with dynamic values.
You could then delete the response from your DB.
Again no experience but the spotty experience tells me something isn’t being connected, and then a blank result is being sent and that could result in the error.
My go-to when I have a blank is to save the response and then send it so I’m sure it’s sending.
So sorry I couldn’t help more with the Grok question.
This worked really well, thanks! Have you ever figured out how to animate text? For example when the API response is received, can I load the text the way GPT loads its content, letter by letter as opposed to it all just flashing up?
Haven’t got that far yet-- so sorry!