Create Cal Event From Screenshot with ChatGPT 🔧
Allow ChatGPT to create a calendar Event for you via AppleScript
// Name: Create Cal Event From Screenshot with ChatGPT
// Description: Allow ChatGPT to create a calendar Event for you via AppleScript
// Author: Eduard Uffelmann
// Linkedin: https://www.linkedin.com/in/euffelmann/
// Twitter: @schmedu_
// Website: https://schmedu.com
import "@johnlindquist/kit";
import { startChat } from "../lib/common";
import { Functions } from "../lib/functions";
import { createFullScreenScreenshotMessage, userMessage } from "../lib/helper";
const screenshotMessage = await createFullScreenScreenshotMessage();
await startChat({
model: "gpt-4o",
temperature: 1,
systemMessage: `You will now receive a screenshot where you will find the contact details and then call the 'createContact' function with the contact details.`,
functions: [Functions.createContactFunction],
messages: [screenshotMessage],
});