Creating a GenAI Document Summarization Workflow in ColdFusion / / No Comments So this post comes from – I’m mostly sure – me forgetting to show a simple, but powerful demo at my presentation recently at the ColdFusion Summit. It’s nice and simple, but pretty darn useful so I decided to write a quick blog post about it and highlight the code. What’s a Document Workflow? Simply put, a document workflow is any process you would use to handle incoming documents. As an example, and one I’ve built many times over the past few years, you can use a workflow to convert all your incoming documents into PDF for easier handling. pdfRest has APIs for this and I’ll likely share a demo of them soon. (ColdFusion itself can convert HTML, PPTX,... more → Posted in: JavaScript Tagged with: ColdFusion, creating, Document, GenAI, Summarization, Workflow
Creating a Calendar with BoxLang / / No Comments Chalk this up to – "Here’s a simple idea for a quick and dirty blog post" that turned into a few hours of my holiday weekend. Not only that, this is probably the first of three or so blog posts so… buck up, buttercup, this is going to be a fun ride. A while ago I had written down (well, typed in, I use Microsoft To Do to record writing ideas) the idea of demonstrating calendar creation with BoxLang, specifically creating a dynamic calendar, with or without events, either entirely server-side, or using a combination of client-side code with BoxLang providing the API. For today’s post, I’m going to focus on (what I had assumed would be) the simplest version... more → Posted in: JavaScript Tagged with: BoxLang, calendar, creating
Creating a Calendar with BoxLang – Part Deux / / No Comments Earlier this week I posted a quick look at building a simple calendar with BoxLang, specifically an HTML one meant for a web page of course. This was a bit complex due to the needs of creating a proper HTML table, but generally I was… ok with the result. Yeah that’s nice and vague, but there’s some code I could state at and think of alternatives for nearly forever and it’s ok to just put it down and walk away. So obviously, I’m returning to it today. Specifically, how to get events on the calendar. Sample Data I started off with some sample data. Initially I thought about finding something online, perhaps a list of holidays, but I really wanted something good for... more → Posted in: JavaScript Tagged with: BoxLang, calendar, creating, Deux, part
Creating a PDF Book from Markdown with BoxLang / / No Comments Recently I’ve done some blog posts on BoxLang involving Markdown and PDFs, and I was curious if I could put together something that really demonstrated a complete tool of some sort. With that in mind, I built a "book" system where you can author pages in Markdown and use a BoxLang CLI script to generate a resulting PDF. It’s more a POC than a real app, but it was pretty fun to build. Here’s what I did. Functionality At a high level, the book is created from a source of Markdown files. Each Markdown file can use front matter (data on top) to define variables that are evaluated at the time the book is created. You can also use a "global" data file to define... more → Posted in: JavaScript Tagged with: book, BoxLang, creating, from, Markdown
Creating Images with Generative AI via Conversation / / No Comments Last week, I blogged about updates to Google’s Gemini APIs in regards to image generation. That post detailed how there are now two models for generating images with the experimental Gemini Flash model having a nice free tier. One of the interesting features of the API is the ability to edit existing images, in other words, pass an image to Gemini and via a prompt, have Gemini update it. I thought it would be kind of fun to see if I could build a ‘chat’ interface for this model, one where you could simply talk to Gemini and have it work on your image along with you. Now to be clear, this is no different than what you can do now at the Gemini website, but I figured it would give... more → Posted in: JavaScript Tagged with: Conversation, creating, Generative, images
Creating a Generic Generative Template Language in Google Gemini / / No Comments I’ve been a fan of ‘random text’ for some time. "Random text" is a bit vague, but to me the idea of using code to generate random stories, or even snippets, is fascinating. Back in April, I blogged about how I created short dragon-based stories. It took a generic string: A #adjective# dragon lives #place#. She #verb# her hoard, which consists of a #number# of #thing#, #number# of #thing#, and #number# of #thing#. She feels #feeling#. And created a story by replacing the pound-wrapped tokens with real words. I used a couple of different tools to build this, but the core one was a cool little Node library named random-word-slugs. It’s a powerful random word library... more → Posted in: JavaScript Tagged with: creating, Gemini, Generative, Generic, Google, Language, Template
Creating a Content Assistant with Gemini and GenAI / / No Comments One of the use cases for generative AI that I’ve discussed before is the idea of using the tool to aid in the writing process. I’m not talking about creating content so much as creating suggestions and providing feedback about the content you yourself have created. This past weekend I worked on a "general purpose" tool with this in mind and thought I’d share it to get your feedback. ("You" being the smart readers of this blog who keep me honest when I show something stupid. 😉 The Application # The application itself is rather straightforward. It asks two questions – first, what are you trying to accomplish with your writing and what are the desired... more → Posted in: JavaScript Tagged with: Assistant, Content, creating, Gemini, GenAI
Creating Visualizations in Postman / / No Comments Earlier this week, I blogged about a cool Postman feature where you could use scripting to take the result of one API call and use it as a variable that is then used by a second call. For APIs that first require you to exchange credentials for an access token, this is a super useful way to make that process easier. Today I’m following up on that with another useful application of scripting – visualizations. Once again, I’ve got my coworker Ben to thank for showing me this. Let me show you an example. When working with Firefly Services and the text to image API, you get a nice JSON response back containing information about the results as well as links to your images. Here’s... more → Posted in: JavaScript Tagged with: creating, Postman, Visualizations