Create Webflow CMS from Network Response

In my Webflow site I’m using my own endpoint to fetch some data related to a member.

How can I save this response to Webflow’s CMS so I can show it to the user in another part of my Webflow site as a “history” tab for them?

If this isn’t possibly inside of Webflow what would be the best /easiest solution?

Hi Donovan,

That’s not really enough information to go on. I’ve far too many questions to give useful advice.
However there are two patterns that might work depending on your specifics.

PRE-PUSH
You push the data from your system into the CMS first, and then it’s available to your user in the CMS anytime they want.

PUSH-ON-REQUEST

  • You wait for a request from the user
  • That request hits a webhook, which goes and gets the data and pushes it to the Webflow CMS, and then when the webhook returns you’d redirect the user to the new collection page.

If you want, you can use a 3rd party service to do the webhook and automation, rather than writing the webhook yourself- however, if you go that route you’d want one which allows you to separate the webhook request and the webhook response. I know Make and n8n can do this, and Zapier can not. Not sure about other platforms, and there are many.

Is there a way to push directly to the CMS using jquery on my Webflow page’s custom code? Or is this something I have to add to my backend using the Webflow API?

Sure, that’s a bit of a convoluted way to go about it, your data’s making quite a few more trips through a few more systems. But you could.

The only way to keep it fully internal to Webflow is to use a Logic-connected form to add your item to your CMS table.

  1. Figure out what your fields are, and setup your CMS
  2. Create a simple unstyled form which captures those fields
  3. Build a Logic flow from the form to add a posted item to your CMS
  4. Wrap the form in a DIV and hide it. I’d probably make it a component ( symbol ) as well, so I can keep it self-contained
  5. Write your jQuery, which calls your endpoint, and collects the results
  6. On success, populate the form fields and submit() it

Here’s a demo of the form → logic → cms integration.
All you’d add is the jQuery.

No you’ll hit a CORS error.

Webflow doesn’t allow this because you’d be forced into publicly exposing your private / secret Webflow API key within your jQuery on that Webflow page’s custom code.

That’s bad. So Webflow blocks you from doing it.

But yes to your second question. You’d have to go through a backend. But it doesn’t have to be your backend.

It’s fairly common to fire off a request into a free Make (Integromat) or (possibly paid) Zapier account which then pushes data into your Webflow CMS.

There’s also the option of Webflow’s new Logic feature, but it’s still in beta and can be a bit unstable at the moment.

Here are some tutorials & screencasts walking through how to wire all of this up (if you’re not already familiar with it):

For all of those you’d just replace a form submit (if you want) with a jQuery request.

The key for all of this is sending that to a Webhook endpoint:

That’s the secret piece to making this all work for you.

Wow, you went above and beyond with this. Thanks so much this helps push me in the right direction. Appreciate it!