(Noob here
)
Iām creating an app that manages recruitment quizzes.
I donāt want to recreate a full quiz app in Bubble because Typeform already does it well and it has both an existing Bubble API plugin as well as webhooks to send out form responses to any URL upon user submitting them.
The idea is to have each candidate response added to my appās database in Bubble, so that I can offer HR managers a way to find and manage the best candidates who have responded to the quizzes.
I imagine that the ideal way is to use Typeformās webhook to post to my Bubble app every time a user submits a form. However, the webhook needs a Destination URL and I donāt know how to get or create one for my app in Bubble, and how to make those POST requests add actual data into my appās DB in Bubble.
I tried going another way as well, by using Bubbleās existing Typeform plugin.
Iāve installed the plugin, entered my Typeform API key, created the āall_candidates_scoresā page in my bubble app (to test the connection), created a RepeatingGroup, and used the following in the Repeating groups configs:
- Type of Field: Form Responses responses
- Data source: Typeform - Form Responses responses (+ correct form ID, + parameter completed = true)
Then, in each line of the repeating group, I added a few text fields and tried to pull in data using:
- Current Cellās Form Responses response + one of the fields available there from Typeform.
I can retrieve some metadata from my form in that RepeatingGroup, such as date_submitted, question ID, etc. But the responses themselves come in blank. The repeating group does show the correct number of lines equal to the number of my existing responses in Typeform, but nothing is pulled in those text fields.
I spent a few days already troubleshooting this by simply canāt find how to do it.
I tried to change to form responsesā questions and I can successfully pull in the question headers, but not the answers.
I need those answers into my appās DB one way or another.
Please, anyone help me if you can.
My test app is open to the public, so you can check it out.
Iām not familiar with the Typeformplugin. Hopefully someone who is can assist there.
For the webhook approach, I believe you would have to create an API Workflow (endpoint) in Bubble (enable it settings if you have a paid account). Then use the url https://appname.bubbleapps.io/version-test/api/1.1/wf/my_endpoint in Typeform for the webhook, where āmy_endpointā is the name of your Bubble endpoint. Of course you would need to setup your endpoint to create a record in your Bubble db. Thereās more on this here: https://bubble.io/reference#API.introduction.
2 Likes
Thank you louisadekoya.
Iāll try this out on the weekend.
Hi @rscestari,
I actually published this plugin, and you ran into quite an issue that I didnāt know about. The problem is that your response fields arenāt being returned by the API, instead, the ones I used to set up the plugin are. So, Iāve reached out to Bubble to see if this is just a bug or a bigger incompatibility issue, so Iāll keep you posted.
If we do get it fixed, this would be a great, direct way of accessing your data. But you DO have a couple more options:
- Exactly what @louisadekoya suggested
- Integrate the Typeform API directly into your app with the API Connector. This would be a nearly identical setup to the plugin, but youāre in a little more control over the API configuration. If youād like, Iād be more than happy to get that set up for you.
Gaby | Coaching Bubble
2 Likes
Hi @romanmg,
Thank you so much for helping me out with this.
I was going crazy with this issue.
Iām still very new to Bubble and also to working with APIs, so I though I had hit a wall with my lack of competence.
Iāll try to learn a bit more about APIs and try to set one up now.
However, if you have time to help me set it up, I would be really thankful.
Keen to learn.
Thanks!
1 Like
Hi @romanmg,
I managed to create my own API with Bubbleās API connector and it worked!
Thanks for the tip. This is actually fun.
Iāll have each quiz as a different form in Typeform, so Iāll probably create a few different API calls, but is all good.
Now Iāll need to find out how to work with workflows to have that call updating my DB in Bubble based on a timeframe or record ID (so it doesnāt keep updating all records from the start of time.)
Thanks so much for your help!
1 Like
@rscestari Awesome! Iām so glad to hear it
Yeah, this is a good API to play around with.
1 Like
Hi @rscestari! Iām having the exact same challenge right now, working with Typeform and want to get the answers into my Bubble DB.
How did you manage to do it? Iād be so grateful if you could explain me the steps.
Thank you!
1 Like
Hi @romanmg,
Do you have news from Bubble regarding your/Typform plugin ?
Thanks,
Hey @rscestari sorry that Iām so late to the game.
Can I get your help via screenshots on how you managed to initialise an api call using Bubble API connector?
And what URL did you use when you created the App Token in your bubble account.
Thanks!!
is there any thing we should do before clicking detect data
when I trigger, it is just loading only nothing is happening
i have also set ON on my typeform webhooks
But in my delivery section it is showing 401 error
How can fix it up?