Using Llama 3 in n8n with Cloudflare Workers AI

Hey everyone :wave:

Recently I posted a little video on my LinkedIn profile showing my experiments with connecting Llama 3 on Cloudflare Workers AI to n8n workflow. Since the post gained some attention and I received a couple of questions on how to do it, I decided to record a short tutorial showing the process.

:gem: Cool bonus: You can enjoy unlimited usage on the beta models on Cloudflare until they graduate out of beta (llama-3-8b-instruct is currently one of them).

5 Likes

Awesome, am testing but only works for once or two times, then shows
{
β€œerror”: β€œ500 "An unexpected error occurred"”
}

thanks

Hey @Daniel_Martin_Leon_S, thanks for your feedback and apologies for my late reply.

Are you using it with an AI agent or with a chain? I ran into this issue several times when using with AI Agent (I mentioned it in the video), but the connection should work fine with chains. If possible, please provide more details about your workflow and I’ll try to investigate further.

Hi, thanks for the reply, am using for separate testings both Ai agent and chat, on the first try it works with simple questions, but on the second send errors and the screenshot issue.