Pinnacle

Sending RCS Messages

Sending your first RCS message with Pinnacle's Python SDK

Prerequisites

Before proceeding, ensure you have obtained a phone number and API key as described in the prerequisites.

Installation

Create a Python virtual environment:

Shell
python3 -m venv venv

Activate the virtual environment:

Shell
source venv/bin/activate

Install the Pinnacle Python SDK and python-dotenv to load env vars:

Shell
pip install rcs==2.0.28 python-dotenv

This guide uses version rcs==2.0.28. Requires: Python <4.0, >=3.8

Configuration

Create an .env file in your project root and add your Pinnacle API key and RCS agent ID:

Shell
PINNACLE_API_KEY="your_api_key" # pnclk_
RECIPIENT_NUMBER="+14155550123" # Replace with your whitelisted test number
AGENT_ID="your_agent_id" # agent_

Sending Your First RCS Message

Create a new Python file (e.g., main.py) and use the complete example.

Quick_replies are required but may be left empty. For sending media urls, you can also use storage on the dashboard under System > Storage or via our API

Run the script:

Shell
python main.py

If successful, the recipient will receive your RCS messages, and they should look something like this:

RCS message example

Pinnacle referenceAsk Pinnacle

Get a sourced answer from the published documentation.

ViewingPinnacle documentation

Conversations are saved for analysis.

Try asking