Reputation: 1
I want to call Gemini's API with IFTTT webhooks.
I set these up. But they do not work. I would like to know why it does not work. Can you tell me how to resolve the error?
https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:generateContent?key=API_KEY
POST
application/json
{
"contents": [{
"parts": [{
"text": {{EntryContent}}
}],
"role": "user"}],
"systemInstruction": {
"parts":[{
"text": "Please strictly adhere to the following conditions and create a conversational text. \n\n- characters : "
}],
"role": "model"}
}
Upvotes: -3
Views: 33