OpenAI Connection
Send prompts to OpenAI's GPT models and receive AI-generated responses in your flows.
Setup
- Go to platform.openai.com
- Create an API key in Settings → API Keys
- In Fainflow: Connections → + New Connection → OpenAI
- Paste your API key and click Save
New Connection

Action: Send Prompt
| Input | Type | Description |
|---|---|---|
| model | string | Model name (e.g. gpt-4, gpt-3.5-turbo) |
| instructions | string | System prompt / instructions |
| input | string | User message |
| Output | Type | Description |
|---|---|---|
| responseText | string | AI response |
| usage | json | Token usage stats |
Example
- Add Telegram Update event
- Add Send Prompt to OpenAI action
- Drag message from event → input
- Set instructions to "You are a helpful assistant"
- Add Send Message action
- Drag responseText → text
Your bot now replies with AI-generated responses!