OpenAI Connection

Send prompts to OpenAI's GPT models and receive AI-generated responses in your flows.

Setup

  1. Go to platform.openai.com
  2. Create an API key in Settings → API Keys
  3. In Fainflow: Connections → + New Connection → OpenAI
  4. Paste your API key and click Save

New Connection


Action: Send Prompt

InputTypeDescription
modelstringModel name (e.g. gpt-4, gpt-3.5-turbo)
instructionsstringSystem prompt / instructions
inputstringUser message
OutputTypeDescription
responseTextstringAI response
usagejsonToken usage stats

Example

  1. Add Telegram Update event
  2. Add Send Prompt to OpenAI action
  3. Drag message from event → input
  4. Set instructions to "You are a helpful assistant"
  5. Add Send Message action
  6. Drag responseText → text

Your bot now replies with AI-generated responses!