Skip to main content

โœจ AI Reply Suggestions

PulseHub integrates with OpenAI's Chat Completions API to generate suggested replies based on conversation history. Optional โ€” disabled unless you provide an API key.


Setupโ€‹

  1. Go to Settings โ†’ Workspace
  2. Paste your OpenAI API key
  3. Click Save Workspace

Get an API key at platform.openai.com/api-keys.


Using AI Suggestionsโ€‹

  1. Open any conversation in the Inbox
  2. Click โœจ AI Suggest in the thread header
  3. The suggested reply is inserted into the compose textarea
  4. Review, edit if necessary, and click Send

The agent always has full control โ€” the suggestion is never sent automatically.


Costโ€‹

gpt-4o-mini pricing: ~$0.15 per 1M input tokens, ~$0.60 per 1M output tokens. A typical 10-message conversation is ~500 tokens. 10,000 AI suggestions cost approximately $0.08.


Customising the System Promptโ€‹

Edit the system prompt in app/Controllers/ApiController.php:

'content' => 'You are a helpful customer support agent. Write a concise, professional reply to the customer.'