James Devonport | Cloudflare Workers for Bubble Apps | Bubble.io

Dev Day
30 Sept 202416:54

Summary

TLDRВ этом видео Джеймс рассматривает Cloudflare Workers и их преимущества для разработчиков без кода, особенно при использовании Bubble. Он демонстрирует, как легко настроить и использовать Workers для выполнения задач AI с помощью OpenAI, а также возвращает структурированные данные в Bubble. Джеймс также обсуждает стоимость и безопасность использования Cloudflare Workers, предлагая идеи для дальнейшего изучения и использования.

Takeaways

  • 🌐 Cloudflare Workers - это небольшая программа, работающая на сети Cloudflare и выполняющаяся очень быстро.
  • 🔐 Workers может хранить переменные, включая зашифрованные API-ключи для безопасности.
  • 🛠️ Workers предоставляет пространство для хранения ключевых значений, что может быть полезно для хранения записей и быстрого доступа к ним.
  • 📈 Cloudflare Workers подходит для выполнения быстрых задач, особенно для работы с AI и возврата структурированных данных в Bubble.
  • 💼 В данном примере Workers используется для вызова конечных точек OpenAI Chat и возврата структурированных данных в JSON.
  • 💻 Редактор Cloudflare Workers имеет разделы для кода, тестирования запросов, просмотра ошибок сети и консоли для отладки.
  • 💰 Cloudflare Workers предоставляет 100 000 бесплатных запросов в день с очень низкой стоимостью CPU времени, что делает его экономичным решением.
  • 🔗 Можно создать Cloudflare Worker, который будет отправлять POST-запросы с текстом резюме в OpenAI и возвращать структурированные данные в Bubble.
  • 🔑 В Cloudflare Workers можно добавить переменную для API-ключа OpenAI и зашифровать ее для безопасности.
  • 📝 Пример использования Workers включает в себя создание кода с помощью Claude, развертывание и тестирование в Cloudflare, а затем подключение к Bubble через API-коннектор.

Q & A

  • Что такое Cloudflare Workers?

    -Cloudflare Workers - это небольшая программа, которая запускается в сети Cloudflare. Это эффективно кусочек JavaScript, который выполняется в облаке и может обрабатывать запросы с использованием HTTP GET или POST.

  • Какие преимущества Cloudflare Workers предоставляет для разработчиков?

    -Cloudflare Workers предоставляет возможность выполнять код на краю сети Cloudflare, что обеспечивает высокую скорость. Он также имеет доступ к API для выполнения сетевых запросов и может использоваться для интеграции с различными сервисами и API.

  • Как Cloudflare Workers может быть полезен для разработчиков без знания кодирования?

    -Cloudflare Workers упрощает интеграцию с AI и обработку данных, что может быть полезно для разработчиков без опыта программирования. Он позволяет создавать сложные функции и интеграции с минимальным кодированием.

  • Какие возможности предоставляет Cloudflare Workers для работы с Bubble?

    -Cloudflare Workers может быть использован для выполнения задач AI и возврата структурированных данных в Bubble. Это может быть полезно для обработки данных, таких как резюме, и преобразования их в удобочитаемый формат.

  • Что такое переменные в Cloudflare Workers и как их использовать?

    -Переменные в Cloudflare Workers используются для хранения информации, такой как ключи API. Они могут быть зашифрованы для обеспечения безопасности и легко настроены через панель управления Cloudflare Workers.

  • Какие функции хранения данных предоставляет Cloudflare Workers?

    -Cloudflare Workers имеет встроенный кэш для хранения данных. Хотя в видео не рассказано об этом подробно, он предоставляет возможность быстрого доступа к данным на крупном масштабе.

  • Какие цены на Cloudflare Workers и какие лимиты существуют?

    -Cloudflare Workers предлагает 100 000 бесплатных запросов в день с 10 миллисекундами CPU на вызов. Для более высоких потребностей существует платный план, начинающийся с 5 долларов в месяц.

  • Как установить Cloudflare Worker и как он взаимодействует с Bubble?

    -Для установки Cloudflare Worker нужно войти в аккаунт Cloudflare, создать новый Worker и развернуть его. Затем Worker можно подключить к Bubble через API-коннектор и отправлять в него POST-запросы с данными для обработки.

  • Что такое пример использования Cloudflare Workers с OpenAI?

    -В видео приведен пример, где Cloudflare Worker использует OpenAI для извлечения информации из резюме и возврата ее в структурированном JSON. Это показывает, как Worker может интегрироваться с AI для выполнения сложных задач.

  • Какие дополнительные возможности Cloudflare Workers можно исследовать в будущем?

    -В будущем можно исследовать использование Cloudflare Workers для подключения к базам данных, группировки AI-запросов и выполнения анализа на их основе. Это может быть полезно для создания более сложных и мощных приложений.

Outlines

00:00

🌐 Введение в Cloudflare Workers

В этом разделе Джеймс представляет Cloudflare Workers как полезный инструмент для разработчиков без кода, особенно при работе с Bubble. Он рассматривает Workers как быстрые, маленькие программы, запускаемые на сети Cloudflare, и способные обрабатывать запросы через HTTP. Джеймс также отмечает, что Workers могут быть использованы для выполнения задач с AI, возвращая структурированные данные в Bubble. Он подчеркивает, что Workers просты в использовании и могут снизить нагрузку на рабочие процессы, делая их более доступными и экономичными.

05:01

🔑 Создание Cloudflare Worker для извлечения данных с резюме

Джеймс демонстрирует процесс создания Cloudflare Worker, который будет извлекать ключевую информацию из резюме и возвращать ее в виде структурированного JSON-объекта. Он использует сервис Claude для генерации кода Worker и обьявления переменной для ключа API OpenAI. В этом разделе также рассматривается использование JSON-моделей OpenAI для возврата данных и отправка POST-запроса с текстом резюме в Worker для дальнейшего обработки.

10:02

🛠 Тестирование и развертывание Worker в Cloudflare

В этом разделе Джеймс копирует сгенерированный код Worker из Claude в Cloudflare и начинает процесс тестирования. Он добавляет переменную с ключом API OpenAI, чтобы Worker мог обращаться к сервису OpenAI. После развертывания Worker тестируется с помощью примера POST-запроса с текстом резюме. Тестирование показывает, что Worker успешно извлекает данные и возвращает их в структурированном формате JSON.

15:05

🌀 Интеграция Worker с Bubble и дополнительные возможности

Джеймс продемонстрирует, как настроить Worker в Bubble, используя API-коннектор. Он копирует URL Worker и настраивает новый вызов в Bubble, который отправляет POST-запрос с текстом резюме. Результаты, возвращаемые Worker, структурированы и готовы к использованию в Bubble. В заключении Джеймс рекомендует добавить защиту Worker, например, с использованием ключей API, и отмечает, что в будущих выпусках будет рассмотрено использование Workers для более сложных задач, таких как соединение с базами данных и группировка запросов к OpenAI.

Mindmap

Keywords

💡Cloudflare Workers

Cloudflare Workers - это сервис, предоставляемый компанией Cloudflare, который позволяет разработчикам запускать JavaScript-код на глобальной сети Cloudflare. В контексте видео, Workers используются для создания программ, которые обрабатывают данные на стороне сервера, например, для взаимодействия с API OpenAI. В видео рассматривается, как Workers могут быть полезны для разработчиков без опыта программирования (no code developer), особенно при работе с платформой Bubble.

💡No code developer

No code developer - это термин, обозначающий разработчиков, которые строят и разрабатывают приложения без написания кода в классическом смысле. В видео упоминается, что Cloudflare Workers полезны для таких разработчиков, поскольку они могут использовать визуальные инструменты и интеграции для создания сложных функций, таких как обработка данных AI.

💡Bubble

Bubble - это визуальный платформа для создания веб-приложений без написания кода. В видео Bubble используется в качестве примера платформы, с которой интегрируются Cloudflare Workers для выполнения задач, связанных с AI, и возврата структурированных данных в Bubble для дальнейшего использования.

💡AI

AI, или искусственный интеллект, - это область информатики, связанная с разработкой программ, способных выполнять умственные задачи, обычно выполняемые людьми. В видео AI используется в контексте вызова API OpenAI с помощью Cloudflare Workers для получения структурированных данных из резюме.

💡OpenAI

OpenAI - это исследовательская лаборатория, специализирующаяся на разработке искусственного интеллекта. В видео OpenAI упоминается в качестве сервиса, который предоставляет API для выполнения задач AI, таких как анализ резюме и возврат структурированных данных.

💡API

API, или интерфейс программирования приложений, - это набор правил и протоколов, который позволяет различным приложениям взаимодействовать друг с другом. В видео API используется для обращения к сервису OpenAI с помощью Cloudflare Workers и получения данных.

💡JSON

JSON (JavaScript Object Notation) - это формат обмена данными, широко используемый для передачи структурированных данных между веб-приложениями. В видео JSON упоминается в контексте возвращения данных из Cloudflare Workers в Bubble в структурированном виде.

💡Post request

Post request - это тип HTTP-запроса, используемый для отправки данных на сервер. В видео post request используется для отправки текста резюме в Cloudflare Worker через API Bubble.

💡API connector

API connector - это инструмент или сервис, который позволяет приложению взаимодействовать с внешними API. В видео API connector в Bubble используется для подключения к Cloudflare Worker и отправки запросов с текстом резюме.

💡Encrypt

Encrypt - это процесс преобразования данных (шифрование) для защиты от несанкционированного доступа. В видео упоминается шифрование переменных в Cloudflare Workers, таких как ключи API, чтобы обеспечить безопасность.

Highlights

Introduction to Cloudflare Workers and their usefulness in a toolkit for no code developers.

Cloudflare Workers are small programs that run on Cloudflare's network, effectively JavaScript in the cloud.

Workers run extremely fast and can handle GET or POST requests, accessing the internet like a workflow in Bubble.

Workers can interact with other services and APIs, exemplified by using OpenAI chat endpoints.

Workers can store variables securely, including API keys.

Workers have a KeyValue Store for data storage at a massive scale.

Workers are ideal for quick jobs, especially AI tasks, and returning structured data to Bubble.

Workers reduce workflow utilization and are more affordable than other solutions.

Cloudflare offers 100,000 free requests per day with each invocation having 10 milliseconds of CPU time.

Paid accounts start at $5 a month with competitive pricing.

Building a Cloudflare Worker to connect to Bubble through the API connector.

The process of creating a Cloudflare Worker involves writing code and deploying it.

Using Claude to generate Cloudflare Worker code for extracting key info from a resume.

Setting up variables in Cloudflare to secure API keys.

Testing the Cloudflare Worker with a sample resume to ensure it extracts and returns structured JSON.

Integrating the Cloudflare Worker with Bubble using the API connector.

Using the Cloudflare Worker to process a resume text and return a structured JSON in Bubble.

Adding security to the Worker by requiring an API key for execution.

Option to run Workers from a custom domain for a more professional setup.

Future episodes will cover more advanced uses of Cloudflare Workers, including database connections and batch AI requests.

Transcripts

play00:00

hey there it's James here uh today we're

play00:01

going to be taking a look at Cloud flare

play00:03

workers and why I think they're such a

play00:06

useful thing to have in your toolkit uh

play00:08

as a no code developer particularly when

play00:10

working with bubble uh they're really

play00:12

handy for doing really cool stuff with

play00:14

AI um so this is the session uh that I

play00:17

did for Devo we had some technical

play00:19

issues on that day I think cloud flare

play00:20

were deploying a load of changes to

play00:23

workers because it looks uh totally

play00:24

different now so uh it's all working

play00:26

great again so I thought I'd re-record

play00:29

everything and we could just go through

play00:30

exactly how it works it's really easy to

play00:32

get started so yeah let's take a

play00:35

look so let's dive into it I've put

play00:38

together just a couple of simple slides

play00:40

just to introduce cloudflare workers and

play00:41

kind of explain a little bit more what

play00:43

they actually are so um at the most

play00:46

simple level what they are is it's a

play00:48

small program that runs on cloud Flair's

play00:51

network uh so it's effectively uh a bit

play00:55

of JavaScript uh in our example anyway

play00:58

that's going to run uh in the cloud uh

play01:01

they run extremely fast uh and when you

play01:04

so you can access it by kind of get

play01:06

request or post request uh and then it

play01:09

itself it has access to to do Network

play01:12

requests itself so you can kind of think

play01:14

of it a bit like a workflow in bubble uh

play01:17

on the public internet so it can do

play01:19

pretty much anything workflow in bubble

play01:22

can do but obviously you've got access

play01:24

to doing all sorts of more advanced

play01:26

stuff uh with with custom code in there

play01:30

can talk to other services uh and apis

play01:33

so like in this example today we're

play01:35

going to use uh open AI chats uh chat

play01:39

endpoints to to do uh our request so the

play01:42

worker is going to handle all of that

play01:44

for us uh it can have variables uh so

play01:47

you can put things like API Keys uh into

play01:50

variables and encrypt them to keep them

play01:53

secure uh we'll cover that again today

play01:55

it's really easy to use uh it does have

play01:57

a key Value Store as well um we're not

play02:00

going to cover that today but we

play02:01

probably will in the future but it's

play02:03

basically a free data store uh so if you

play02:05

need to store records and and have quick

play02:08

access to them at a massive scale uh

play02:11

this could be worth looking at uh so

play02:13

it's it's it's got that built in but

play02:15

really it's just a great way to do very

play02:17

quick uh jobs I I think it's

play02:20

particularly useful for doing AI tasks

play02:23

uh and returning structured data to

play02:25

Bubble so if you've watched any of my

play02:27

previous editions where we've tried to

play02:29

deal with

play02:30

uh running requests to open Ai and then

play02:33

paing the Json that we get back it can

play02:35

be a bit of a faf in bubble uh so I

play02:37

think this is a really good alternative

play02:40

uh it's really easy to set up and use

play02:42

and I use it in multiple of my own apps

play02:45

and it's it's been absolutely amazing of

play02:47

course it also is going to help reduce

play02:48

on your workflow uh utilization because

play02:51

all this uh AI jobs are going to be

play02:53

happening in Cloud flare so uh yeah it's

play02:56

it's a lot more

play02:58

affordable um just to give you quick

play03:00

preview of what the actual editor is

play03:01

going to look like when we go into it

play03:03

just at very high level the bit on the

play03:05

left there is where the actual code goes

play03:08

uh so this is where we're going to put

play03:10

the code uh that our work is going to

play03:12

run uh and on the right section there

play03:14

you've basically got a little test panel

play03:16

so this is where you can run test

play03:18

requests against the worker see how they

play03:21

perform see what the output is and also

play03:24

you've got your kind of network tab

play03:26

there so you can see any errors and

play03:28

you've got the console errors and all

play03:29

that kind of stuff in there um which

play03:31

again is quite useful because if you do

play03:33

get an error you we're going to just

play03:35

take that straight out and put it back

play03:37

into the AI uh to update our our code

play03:40

and fix any errors so really works well

play03:44

the other great thing about workers is

play03:45

they're just insanely cheap uh for uh

play03:49

getting up and started so you get uh

play03:51

100,000 requests free every day uh with

play03:55

10 millisecond milliseconds of CPU time

play03:58

per invocation I personally don't really

play04:00

go over that even with some of my more

play04:03

complex things that uh little workers

play04:05

that I've built and then if you do want

play04:07

to get get a paid account it starts at

play04:09

$5 a month and as you can see the

play04:11

pricing is extremely extremely

play04:13

competitive like I don't think there'd

play04:15

be a cheaper way of doing these kind of

play04:17

things uh that I've come

play04:19

across so just at a very high level what

play04:22

we're going to do today uh we're going

play04:24

to build a cloud flare worker uh that uh

play04:27

that're we're going to connect to from

play04:28

Bubble so we're going to connect to it

play04:30

through the API connector in bubble and

play04:32

we're going to send it uh a post request

play04:35

which is going to contain the text of uh

play04:38

a resume so we're just going to have all

play04:40

the text of the resume send it into the

play04:42

cloudflare worker and then in the

play04:44

cloudflare worker we're going to call

play04:47

openai uh give it that text and ask

play04:49

openai to return us a structured Json of

play04:53

all the of all the data that's in that

play04:55

resum so this is just to give you a bit

play04:57

of an example of the kind of stuff you

play04:59

can do obvious we can get way more

play05:01

complex but um I think this is a good

play05:04

example uh and then so we're then going

play05:06

to return that structured Json that we

play05:09

get back from open AI back to Bubble so

play05:12

effectively in bubble we're going to

play05:13

make our request with our our resum and

play05:16

we're going to get back a really nicely

play05:17

formatted block of Json uh with all the

play05:20

data from that resumé formatted in a

play05:23

nice way that we can then go on and use

play05:25

in bubble uh and the API connector is

play05:27

going to pick up all those fields and

play05:28

and let us use them

play05:30

so uh with that said let's dive into

play05:32

Cloud flare and get

play05:35

started so uh I've logged into my

play05:38

cloudflare account and to go to workers

play05:41

uh we're got to go down here on the left

play05:43

and you'll see there's a whole section

play05:44

for workers there's absolutely loads of

play05:46

stuff uh but we're going to go to the

play05:48

overview and we're just going to hit the

play05:50

create uh a worker uh button uh and then

play05:54

we're just going to create a blank

play05:56

worker to get us

play05:58

started I'm going to call our worker uh

play06:01

resume

play06:03

AI

play06:05

extractor and I'm just going to hit

play06:07

deploy and that's basically just going

play06:09

to set us up uh a blank worker with some

play06:12

kind of boilerplate code in it uh that

play06:14

will let us just get started uh with

play06:17

with kind of getting everything set up

play06:20

so once we've got our worker here you

play06:22

can see you've got the URL for it

play06:24

already so this is the URL that we're

play06:25

going to use in the bubble API connector

play06:28

later but let's just get started with

play06:30

actually putting the worker together so

play06:33

I'm going to press the edit code button

play06:35

uh and then we've open up here with our

play06:38

worker in that uh in that mode that I

play06:40

showed you

play06:41

earlier and we've just got our kind of

play06:44

boiler plate code here uh that is set us

play06:47

off so we can just delete that to get

play06:48

started so we're going to generate our

play06:52

uh our code for this worker with uh

play06:54

Claude so we're going to use anthropics

play06:57

Claude uh you can also use chat G

play07:00

I found Claude works really well with

play07:01

this so let's just head over into

play07:05

Claude and I've re uh already written my

play07:08

prompt so I'm going to take my prompt

play07:10

and put it in

play07:11

here and uh I'm just going to talk you

play07:14

through the prompt uh in a bit of detail

play07:17

just to kind of explain uh what what I'm

play07:21

actually asking for here because I think

play07:23

it's quite useful to know uh what the

play07:26

The Prompt is actually doing so you can

play07:29

see here we're saying uh I want to

play07:30

create a cloud flare worker which

play07:33

extracts key info from a resume and

play07:36

returns it as a structured Json object

play07:40

the the cloudflare worker variable for

play07:42

the open AI key is open AI key under

play07:45

with big caps underscore I'll show you

play07:47

where we're going to set that up later

play07:49

basically that's what that what we're

play07:50

saying there is we want to make our API

play07:53

key a variable uh that we're going to

play07:55

set in the cloud flare dashboard but it

play07:57

means that we're not just putting our

play07:59

API key into the code which we probably

play08:02

wouldn't want to do we want to keep it a

play08:03

bit more secure uh and encrypt it so

play08:05

we're going to do it in Cloud flare and

play08:07

that's just telling it what we want to

play08:09

call the variable so we want to call it

play08:11

open AI API key super

play08:14

simple um I'm going to declare that I

play08:17

want to use the open a open AI model uh

play08:20

GPT 40 mini um sometimes this will try

play08:24

and just use a random model because they

play08:26

they're not always aware of the latest

play08:28

things so I just always declare what

play08:30

model I want to use um which just keeps

play08:32

it kind of

play08:34

simple uh we want to use uh open AI Json

play08:37

mode to return structured data so we're

play08:40

we're telling it okay I want you to make

play08:43

sure you set up the API call to open AI

play08:45

to use Json mode just to make sure we're

play08:47

forcing it to return uh

play08:50

Json and uh I want to make a post

play08:53

request to the worker with an object

play08:56

containing the text from a resume and

play08:58

then I've just made a simple example

play09:02

kind of Json object so this is what I

play09:04

want to send into the worker a little uh

play09:06

post request with this string here which

play09:09

is going to be the actual resume super

play09:12

simple uh and then the last thing here

play09:14

is is I say uh I want the worker to

play09:17

return a standard structure of data from

play09:19

a resume you should Define the structure

play09:22

so I'm just doing that to keep this easy

play09:25

um but probably in your own use case you

play09:27

may have adjacent structure you've

play09:29

already got that You' put in here and

play09:31

you say I want this exact structure back

play09:34

uh but I'm just going to let claw

play09:36

generate it so I'm just going to hit go

play09:39

there and we're going to uh see what

play09:42

Claude does so it's going to write all

play09:44

the code for our worker here it's

play09:46

probably not going to be that long uh

play09:49

and we can see we've got our worker code

play09:51

there and it's also given us uh an

play09:54

example post request uh that we can do

play09:57

as well later

play09:59

um and it's it explains in detail what

play10:02

the work is actually doing here uh so

play10:06

yeah so now pretty much what we can do

play10:09

is we can take this code copy it from

play10:11

here go over to

play10:13

cloudflare paste in our

play10:16

code and uh that is all in there ready

play10:21

to go now so first of all we're going to

play10:23

just see that this is just basically

play10:24

it's not going to work because first of

play10:27

all we're we're not doing the proper

play10:28

request here yet but also we haven't put

play10:31

our API key in yet so what I'm going to

play10:34

do is I'm just going to hit hit de

play10:36

deploy up here basically that's just

play10:38

going to save where we are with this and

play10:42

then I'm going to go back into Cloud

play10:44

flare into the settings for this worker

play10:48

so this is all the code that is just

play10:50

recently changed which I think was

play10:52

changed the other day when I was doing

play10:53

my demo um but all of this is different

play10:56

now so uh we want to add in a variable

play11:00

so this is the variable that we

play11:02

described in that prompt earlier so this

play11:04

is going to be our open AI API key and

play11:09

I've got a quick test key that I'm going

play11:12

to use

play11:13

here put that in here I'm going to

play11:15

delete that afterwards obviously and

play11:17

then if you want it to be encrypted you

play11:18

can hit the encrypt button here and that

play11:20

will keep it secret uh so it can't be

play11:22

seen uh and then you just hit deploy

play11:25

down here and that will save that that

play11:27

variable so now when that worker runs

play11:29

and it looks for the open AI API key uh

play11:33

it's going to know it's going to have it

play11:35

there be able to to use it so I'm now

play11:39

going to head back into edit the code so

play11:42

we're going to go back into our worker

play11:43

and now we're actually going to test it

play11:45

so fingers crossed this should actually

play11:47

just work uh the first time but

play11:49

obviously uh we just need a test resume

play11:52

to send into it so I'm just going to ask

play11:54

Claude for this this is is the easiest

play11:56

way uh can you give me

play11:59

a example resume post request to test

play12:06

with uh and then uh claude's just going

play12:09

to generate a uh an example resume for

play12:12

me here that I can use to test it but

play12:14

you might already have your own one um

play12:17

so yeah I'm just going to grab that head

play12:19

back into Cloud flare and in our right

play12:23

pain here we're going to say okay let's

play12:25

test this we know we want to do a post

play12:27

request so we're going send a post into

play12:30

this and we're going to paste in the

play12:32

body uh that resume that we just did so

play12:35

second I paste that in the worker is

play12:37

going to start

play12:39

running uh and we should see in a second

play12:43

uh yeah there we go there's our uh Jason

play12:46

so uh the work has run uh open AI has

play12:49

extracted all this data here and you can

play12:51

see we've got a lovely structured Jason

play12:54

uh with all of that uh data so uh we've

play12:57

got it all in a nice format that we can

play12:59

can then go and use so next step is we

play13:02

want to go and set this up uh in bubble

play13:05

which again going to be super super

play13:07

simple uh and let's uh get started with

play13:13

that so uh to get this set up in bubble

play13:16

what I'm going to do first is I'm going

play13:18

to copy this uh URL here so this is the

play13:22

URL of our Cloud flare worker and I'm

play13:24

going to head over into bubble into the

play13:28

API connector

play13:29

and in here I've just set up a uh a new

play13:33

API call for cloud flare and I'm just

play13:35

going to say add another

play13:37

call and in here I'm going to say uh

play13:40

let's just call this our resumé

play13:44

extractor and it's going to be a post

play13:47

request and I'm going to put in our

play13:49

Cloud flare URL there and then I'm

play13:52

actually just going to go and copy that

play13:54

exact same call that we just did to

play13:55

Cloud flare here so I'm going to copy

play13:57

this

play13:59

uh just make sure you've deployed this

play14:01

by the way because obviously to call it

play14:02

externally you need to make sure you've

play14:04

uh you've deployed it uh and then I'm

play14:06

going to head back into bubble Post in

play14:08

our resume string here and then uh all I

play14:13

should need to do now is hit initialize

play14:15

call and what that's going to do is run

play14:18

that cloud flare worker which in turn is

play14:20

going to run its open aai job extract

play14:24

the data from our uh resume and there we

play14:28

go we can see it's returned to us our

play14:30

lovely structured Jason so we've got our

play14:33

name summary all the education skills

play14:37

all in a really really perfect format

play14:39

for us to use in bubble uh so I'm going

play14:41

to hit save and that's it uh a very very

play14:44

high level uh that's how you can use

play14:47

cloudflare workers to do stuff now

play14:49

obviously you could then go in and start

play14:51

doing uh a lot more with this uh you

play14:54

could you could update the prompt to

play14:56

start doing more analysis and things

play14:57

like that and the other thing thing I

play14:59

would recommend is you add some security

play15:01

uh onto your worker uh so maybe by

play15:04

adding uh like an API key that you need

play15:07

to run it uh but we'll probably cover

play15:09

that in in a future uh Edition just to

play15:11

make sure that you've got uh some

play15:13

security on your worker and not just

play15:14

anyone can run it but again very easy

play15:17

don't need to write any code you can do

play15:18

it all through uh just with with Claude

play15:21

going back and forth uh and putting

play15:24

another variable in Cloud flare the

play15:26

other thing to note is in Cloud flare if

play15:28

you want uh you can also run this from

play15:31

your own domain so uh by default it runs

play15:35

on this this workers. Dev domain but if

play15:38

you want to you can go in and hook up

play15:40

your own domain so you could have this

play15:41

as

play15:42

resume. yourown domain.com and run it

play15:45

from that which is the recommended way

play15:47

of doing it uh and there is a ton more

play15:50

stuff in here uh that we could dive into

play15:52

and we probably will in future episodes

play15:54

so if you found this useful let me know

play15:56

um because I'd love to cover this more

play15:59

in more detail because obviously I've

play16:00

used this for for much more advanced

play16:02

things like connecting to databases

play16:05

looping AI requests so batching up

play16:09

multiple calls to open Ai and doing

play16:11

analysis on all of them and that kind of

play16:13

thing so this is just kind of an intro

play16:15

just to show you kind of the workers

play16:17

dashboard how to put your code in there

play16:20

how to run it uh and how to then set it

play16:22

up in bubble I think you know it's

play16:24

probably a lot easier than you may have

play16:25

thought at the beginning hopefully um

play16:28

but this is a really really really

play16:29

useful thing uh to have in your tool

play16:31

belt uh and it's again super cost

play16:33

effective so I hope you found this

play16:35

episode uh useful drop me uh a reply

play16:38

with any questions or feedback or

play16:40

anything or anything else you'd like us

play16:42

to cover we're going to cover lots more

play16:44

stuff like this uh over the next few

play16:46

weeks uh particularly with doing AI

play16:48

stuff related to Bubble so that's it for

play16:51

this week thank you very much bye-bye

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
Cloudflare WorkersИнтеграция AINo CodeBubbleOpenAIAPIJavaScriptРезюмеОбработка данныхЦифровая экономика
Benötigen Sie eine Zusammenfassung auf Englisch?