Add the Sophia Chat bubble to your website. Sophia provides real-time, accessible, anonymous support and resources for individuals affected by domestic violence.
Before installing Sophia Chat, you need to obtain a license key from Spring ACT. The license key ensures that only authorized organizations can deploy the Sophia Chat widget.
To request a license key:
- Contact Spring ACT to request a license
- Provide your organization details and website domain(s)
- You will receive a license key in the format:
SOPHIA-XXXX-XXXX-XXXX
Your license key is tied to your domain(s) and is required for the widget to function.
WordPress is commonly used by NGOs, government agencies, and humanitarian organizations.
- Download the latest release from GitHub Releases
- In WordPress admin, go to Plugins > Add New > Upload Plugin
- Upload the
.zipfile and click Install Now - Click Activate
- Go to Settings > Sophia Chat
- Enter your license key
- Choose your preferred Sophia icon
- Download or clone this repository
- Upload the
sophia-pluginfolder to/wp-content/plugins/ - Activate Sophia Chat in the Plugins menu
- Go to Settings > Sophia Chat, enter your license key, and configure
| Setting | Description |
|---|---|
| Chat Icon | Choose from 20 Sophia avatars or use a custom icon |
| Show Chat On | All pages, homepage only, specific pages, or exclude pages |
For any website (including UN systems, custom government portals, or static sites), use our Code Generator to get ready-to-use code with your license key and icon selection.
Alternatively, add this code before the closing </body> tag:
<!-- Sophia Chat Widget -->
<style>
#sophia-chat-bubble {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 999999;
transition: transform 0.2s ease, box-shadow 0.2s ease;
background-color: #65758e;
background-image: url('ICON_URL_HERE');
background-size: cover;
background-position: center;
border: none;
padding: 0;
}
#sophia-chat-bubble:hover {
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
</style>
<button id="sophia-chat-bubble"
data-license="YOUR-LICENSE-KEY"
onclick="window.open('https://sophia.chat/secure-chat?license=YOUR-LICENSE-KEY', 'SophiaChat', 'width=400,height=600,scrollbars=yes,resizable=yes')"
aria-label="Chat with Sophia"
title="Chat with Sophia">
</button>Replace:
ICON_URL_HEREwith your chosen Sophia icon URL from the table belowYOUR-LICENSE-KEYwith your license key (e.g.,SOPHIA-XXXX-XXXX-XXXX)
Popular with governments, universities, and large NGOs.
- Go to Structure > Block layout
- Add a Custom block in the Footer region
- Set text format to Full HTML
- Paste the JavaScript code
- Save
- Edit your theme's
html.html.twig - Add the JavaScript code before
</body> - Clear cache
Used by many government agencies and NGOs worldwide.
- Go to Extensions > Modules > New
- Select Custom
- Paste the JavaScript code
- Set position to debug (or any footer position)
- Save and enable
- Navigate to your template folder
- Edit
index.php - Add the JavaScript code before
</body>
- Go to Settings > Advanced > Code Injection
- In the Footer section, paste the JavaScript code
- Click Save
- Go to Settings > Custom Code
- Click Add Custom Code
- Paste the JavaScript code
- Set placement to Body - end
- Apply to All pages
- Click Apply
Used by many UN agencies and government organizations.
- Go to Site Settings > Site Pages
- Edit the page where you want to add the chat
- Add a Script Editor or Embed web part
- Paste the JavaScript code
- Publish the page
- Edit the page
- Add a Content Editor web part
- Click Edit Source
- Paste the JavaScript code
- Save
Note: You may need to allow custom scripts in SharePoint admin settings.
- In Google Sites editor, click Insert > Embed
- Select Embed code
- Paste the JavaScript code
- Click Insert
- Publish your site
Used by many UN agencies, governments, and research institutions.
- Go to Site Setup > Theming
- Edit your theme's
index.htmlor use a custom JavaScript registry - Add the JavaScript code
Add to your theme's main_template:
<metal:script fill-slot="javascript_head_slot">
<!-- Paste JavaScript code here -->
</metal:script>Use our Code Generator to:
- Select your Sophia icon
- Enter your license key
- Get ready-to-use code
Pick an icon URL from the table below and use it in the Direct HTML/JavaScript code above. Don't forget to add your license key!
| Icon | URL (copy this) |
|---|---|
| 1 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_1.png |
| 2 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_2.png |
| 6 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_6.png |
| 7 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_7.png |
| 9 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_9.png |
| 10 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_10.png |
| 11 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_11.png |
| 12 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_12.png |
| 13 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_13.png |
| 14 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_14.png |
| 15 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_15.png |
| 16 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_16.png |
| 17 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_17.png |
| 18 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_18.png |
| 19 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_19.png |
| 20 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_20.png |
| 21 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_21.png |
| 23 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_23.png |
| 24 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_24.png |
| 25 | https://raw.githubusercontent.com/SpringACT/sophia-plugin/main/assets/icons/Sophias/Sophia_25.png |
If your platform isn't listed or you need assistance with integration:
- Issues: GitHub Issues
- Contact: Spring ACT
GPL v2 or later - see LICENSE for details.