Skip to main content
Chat
One chat session per channel on the API
  • POST /v1/chat/session, POST /v1/chat/inbound and POST /v1/chat/inbound/async accept an optional channel: whatsapp, instagram, web or app. A customer then has one active session with an agent on each channel, so a WhatsApp chat you run yourself and your app chat stay open side by side. Creating a session closes only the active session on the same channel.
  • GET /v1/chat/session/active takes channel too. Sessions return it as client_channel.
  • Nothing changes if you do not send channel. The channel is a label: replies still come back through the API. See One session per channel.
  • The website widget reports web and the Flutter SDK reports app from their next releases.
Photos and PDFs from website and app visitors
  • Visitors can send the agent a photo (JPEG, PNG or WebP, up to 5 MB) or a PDF (up to 10 MB), with an optional caption. The agent reads photos and the first page of a PDF, and your team sees the file in the Inbox. See Files from visitors.
  • It needs three switches: the account features chat_attachments and process_media, which Osvi AI support turns on, and Files from visitors in the agent’s Channels → Web widget.
  • Photos leave the device resized and without their location. Files open through short-lived signed links and are deleted after 90 days.
  • In the Flutter SDK from 0.3.0, and in the web SDK from its next release. Custom clients upload with POST /v1/public/chat/session/{id}/attachments and send an attachment in the message frame; see Sending a file.
Flutter SDK 0.2.0 and 0.3.0
  • 0.3.0 adds photos and PDFs from visitors, with a built-in picker or your own (attachmentPicker).
  • 0.2.0 adds up to two header buttons of your own (headerActions), which fold into a More menu on narrow phones; closes the connection while the app is in the background, so a message_created notify hook can send a push notification; restyles cards and the composer; and fixes the unread badge. See Release notes.
Workflow campaigns (preview)
Workflow campaigns (pilot accounts)
  • A campaign runs as Normal (one agent) or as a Workflow: steps on a map that call, check what was said, wait, message on WhatsApp, run a tool and finish with an outcome. See Workflow Campaigns.
  • The campaign’s own page has Batches and Logs tabs. Logs tells each contact’s story in sentences, with the call and the chat, and lets you stop a contact or move them on. On a Normal campaign it lists every number called or calling, with a Missed incoming filter.
  • Campaigns no longer have an Inbound or Outbound type: every campaign takes batches and its agent’s incoming calls. Calling hours are in the campaign’s time zone.
  • New API: POST /v1/campaigns/{id}/events tells a workflow that something happened for a contact.
Campaigns
Campaigns you can trust to start and stop
  • Campaigns have a status: Draft, Active, Paused and Archived. Activating a campaign now starts its agents, and pausing stops all of them while keeping queued contacts, redials and scheduled lists. Archived campaigns are read-only.
  • Calling days: pick the days of the week a campaign may call on, when creating it (next to the call window) or later from Edit on its Overview.
  • Calls only go out on the campaign’s calling days and inside its window, including chat-to-call hand-offs whose voice agent is on a campaign.
  • Lists: a preview before upload, a choice of agent when a campaign has several, Queue now, schedules in IST that can be cancelled, Clear queue for one list’s waiting contacts, and per-list progress.
  • A Called tab lists every number a campaign has called, with attempts, the latest outcome and why it ended.
  • Queueing on a draft or paused campaign succeeds with a warning; POST /v1/campaigns/{id}/contacts returns it in warnings. Adding contacts to an archived campaign returns 409.
Call counts go upRedials and callbacks now keep the list and campaign their first call came from. Every view that counts call logs per list or campaign therefore counts attempts, not contacts, and goes up: per-list and per-campaign call stats, GET /v1/campaigns/{id}/status, GET /v1/calls?campaign_upload_id=, the upload batch column in reports and call-log exports. Nothing is counted twice; redials that used to show under no list now show under theirs. For numbers of contacts, use list progress or the Called tab. Redials placed before this change keep no list.