cat coder
cat coder

Reputation: 1

I want to call Gemini's API with IFTTT webhooks

ISSUE

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?

Error

enter image description here

Curret Request

URL

https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:generateContent?key=API_KEY

Method

POST

Content Type

application/json

Body

{
  "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

Answers (0)

Related Questions