If you keep track of the latest trends in technology or are obsessed with the Terminator franchise, then you've probably asked yourself, "Where will AI be in the next five years?" We've seen Artificial Intelligence used to generate artwork, improve patient treatment, detect insurance fraud, and much, much more. The latest entry into this trove of excitement is OpenAI's ChatGPT. Released in November 2022, ChatGPT (Generative Pre-trained Transformer) is a large language model designed to produce conversation-style results for its users. Because of its conversational nature that can replicate natural language, a ChatGPT integration with your FileMaker solution has the potential to increase your automation and efficiency without sacrificing the human-like feel.Â
ChatGPT can be accessed for free by visiting chat.openai.com/chat. You may need to create an OpenAI account, and during high volume times, there may be some wait time before being permitted to use the site. The layout is a simple interface akin to a large text message. The AI is activated by typing and sending a message, after which the user can halt a response in progress or regenerate a completed response.
Use Cases
The AI can handle a range of prompts from simple questions like "What is an elephant's lifespan?" to even more subjective things such as "What is Klayton Kershaw's best pitch?" You can even challenge it to a game of tic-tac-toe!
Of course, for developers, a more exciting feature may be the ability to give it specific commands, like generating code or thinking through data models. We asked chatGPT to create a FileMaker script that will loop through a portal. Check out the results:
We also asked it for help by seeking alternatives to using an unstored calc in a FileMaker relationship:
Integrations
The official ChatGPT API is available for $0.002 for every 1,000 tokens. In this demo, we'll utilize OpenAI's free GPT API in conjunction with Postman to generate directions on how to bake a cake. There are three parameters that help determine the AI's response:
Model/Engine- Choose between OpenAI models Davinci, Ada, Curie, or Babbage. Each of the different models have their own capabilities and speed of parsing text.
Tokens- Required to produce text. For example, if your response requires 600 tokens, you must use 600 tokens to see the entire response. If your max is set to 300, you will only see part of the response.
Temperature- Determines the overall creativity and detail of the response on a scale from 0 to 1.0.
Below are two responses in Postman from the exact same prompt ("How do I bake a cake?") and model (Davinci), but the temperature has been increased from 0.2 to 0.9. You'll notice the second image has more detailed steps in the instructions.Â
1. Temperature = 0.2
2. Temperature = 0.9
Now, let's see this same thing in action in our FileMaker sample file. First, you'll need to set up a JSON that contains your model, user prompt, temperature, and the max number of tokens you'd like to use.Â
Then, you'll create your cURL options and attach the previously created JSON using the line "-d @<yourJSONName>."
Lastly, make a call to "https://api.openai.com/v1/completions" using the 'Insert from URL' Script step.
Using the interface on the demo file is even easier. When you open the file, simply enter your number of max tokens (we've chosen 400) and temperature, type in whatever prompt you'd like, and then hit the send button. Here, we've added the AI's response to "How do I bake a cake?" using a temperature of 0.5.
Again, we've used the same prompt, but with a higher temperature to showcase the difference in detail.
Conclusion
Where will AI be in five years? No one really knows, but the emergence of technology like ChatGPT could mean reliable alternatives to search engines, wikis, and code templates.
With the power of ChatGPT, integrating AI into your workflows is more exciting than ever. Whether you’re exploring automation, enhancing creativity, or streamlining data processes, ChatGPT is here to help.
If you’re interested in integrating ChatGPT with your FileMaker solutions, or you simply want to learn more about how AI can transform your workflows, don’t hesitate to contact DB Services for more information.
Did you know we are an authorized reseller for Claris FileMaker Licensing?
Contact us to discuss upgrading your Claris FileMaker software.
Download the Filemaker ChatGPT Integration File
Please complete the form below to download your FREE FileMaker file.