Generate ChatGPT Message
Integrate your Feathery form with GPT or any AI service to generate intelligent responses to form inputs that are editable and can power logic.
Overview
Rule Logic
const location = AILocation.value;
const time = AITime.value;
const eventType = AIEventType.value;
const res = await feathery.http.POST('https://api.openai.com/v1/chat/completions', {
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You are a friendly event planner. Maximum 50 word responses."
},
{
"role": "user",
"content": `Create an invitation message for an event. The location is ${location}. The time is ${time}. The event type is ${eventType}.`
}
]
})
AIMessage.value = res.choices[0].message.content;API Connector
Last updated
Was this helpful?