{
  "name": "AgentSteps · Text Message Agent",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "hook": null,
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Texts in"
        }
      }
    },
    {
      "id": 2,
      "module": "openai-gpt-3:CreateCompletion",
      "version": 1,
      "parameters": {},
      "mapper": {
        "select": "chat",
        "model": "gpt-4o-mini",
        "max_tokens": "800",
        "temperature": "0.7",
        "n_completions": "1",
        "messages": [
          {
            "role": "user",
            "content": "You answer customer text messages. Use only the FAQ below. Under 300 characters. If unsure, say a person will reply soon.\n\n[PASTE YOUR FAQ HERE]\n\nCustomer asks: {{1.Body}}"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "AI answers from your FAQ"
        }
      }
    },
    {
      "id": 3,
      "module": "twilio:SendSMS",
      "version": 2,
      "parameters": {},
      "mapper": {
        "from": "+1YOUR_TWILIO_NUMBER",
        "to": "{{1.From}}",
        "body": "{{2.result}}"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0,
          "name": "Text the reply"
        }
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    }
  }
}
