HTTP Request from n8n to ues.io

I’m interested in creating a simple connection to my n8n server that during my workflow sends data to my ues.io app. How can I set this up? Should I use a webhook so that uesio GET the data or can I set up an HTTP Request that POST, PATCH or PUT the data to uesio?

I’m a bit lost with the options in ues.io.

Thanks a lot in advance for your help!
Sincerely,
Timo

1 Like

Hi Timo, thank you for the question. Unfortunately we have this on our roadmap and also have some work done but not it’s in GA right now. If you let me know your specific use case that you are trying to achieve with n8n then we could most likely use the ues.io Bots to achieve something the similar or the same. Let us know and we will be happy to help. Tx

Yes, that would be great to add it to the roadmap as it is a high added value. From the example with Zefix to send an HTTP request to an API is not that easy to put in place. Would it be possible to guide me in creating an integration bot to either send or receive data from an external source that (webhook, http request to an n8n workflow?)

Hi @moti -

Happy to help you on this!

As @UES.IO-Support mentioned, unfortunately a good portion of the functionality to be able to send and/or receive data from an external source is not yet released and hence we do not have documentation available. That said, let’s see if we can get you going with what we do have available currently.

You mentioned the Zefix app so I’m assuming you’ve been reviewing ues-io/zefix: A demo app for REST API, correct?

If not or even if so, there are a few example repos out there that should be able to get you more familiar with integrations, bots, etc.:

  1. ues-io/zefix: A demo app for REST API
  2. integrations/apps/salesforce/bundle/bots/load/salesforce_load/bot.yaml at main · ues-io/integrations
  3. ues-io/checkout: Integration with stripe

Each of these repos has one or more of the following folders which are of particular note:

  1. bundle/bots/**
  2. bundle/collections/**
  3. bundle/integrations/**
  4. bundle/integrationactions/**
  5. bundle/integrationtypes/**

Since there are many different types of bots/integrations, let’s start with the one that I believe most closely aligns with what you are looking for, the Zefix sample. If my understanding is incorrect and you need something different, please just let us know.

WIthin Zefix:

  1. There is a collection marked external which indicates to the ues.io platform that the data is coming from an external source
  2. There is an integration that configures how to authenticate with the external source
  3. There is a integrationtype that is essentially a “name”

In short, the combination of the above allows a user to add a Wire to a view referencing the company collection and then see the data that lives in Zefix.

While there are many pieces that all tie together to make this work, the ues.io platform itself makes this all straightforward :slight_smile:

To configure this, you can do the following:

  1. Login to ues.io
  2. Create an app (choose appkit starter template to jump-start)
  3. Choose the dev workspace
  4. Choose Bots from left side nav
  5. Create a new bot and choose Integration - Load, give it a name and choose Typescript
  6. Choose Integration Types from left side nav
  7. Create a new integration type, give it a name and choose the bot you created in step 5 for “load bot” and click save
  8. Choose Integrations from the left side nav
  9. Choose Credentials in the left side nav
  10. Choose New Credential and complete the information required to access n8n and click save - this will typically be an API_KEY that you have for n8n. Depending on your authentication type, you may need to choose “Secrets” from the left nav menu and create the required secrets (e.g., for the API_KEY).
  11. Create new integration, give it a name, choose the integration type you created in step 7, specify your authentication type & credentials
  12. Choose Settings in left nav, choose the credential that you created in step 9, Edit and give it a value.

With everything now setup, you can go to back to your bot and edit the typescript code to access n8n based on their API. You can see an example of how this is done in the zefix load bot, keeping in mind that the code you will write will be specific to the n8n API.

For now, there’s no ability to receive data but we are actively working on releasing capabilities for this along with providing stock functionality for communicating with standard REST APIs - keep an eye out on our release notes for updates on these two items!

In the meantime, hopefully the above provides you enough to get started - feel free to come back to us with any questions/issues that you have.

Thank you!