Hi! Can i post message to vidget by API (JS or PHP)?
Hi @dimjeb! Unfortunately, this feature is not currently available. However, I would love to learn more about your specific use case so that we can explore potential workarounds together.
I created what I believe is a similar card – @dimjeb please let me know if this is what you’re asking for: Javascript API - open chat widget prefilled with message
I have access to the REST API, but I don’t see the possibility to send a message to the Chat Widget either. Specifically, I need to send a message response from ChatGPT to Tawk Chat Widget via the REST API, it’s impossible that you don’t have that???
Hello there!
Thanks for reaching out. Currently, tawk.to does not offer a way to push ChatGPT responses into the Chat Widget via our REST API. We understand how useful this would be, and we appreciate your feedback.
In the meantime, you can use our AI Assist feature to generate responses directly within the widget.For more information and updates, you can visit the tawk.to Knowledge Base or check schedule a call with our AI Assist team here - Calendly - tawk.to Support
If you have any other questions or feedback, feel free to let us know! We’re here to help in any way we can.
Best regards,
tawk.to Support Team
Dear @zandro ,
I really need this, can I expect that endpoint to be added to the REST API soon? And is there an endpoint for creating Tickets via REST API since I need that too?
Best regards,
Hi Boris,
Thanks for sharing your suggestion on adding an endpoint for sending a message response from ChatGPT to tawk.to Chat Widget and for creating a ticket via REST API! We’ve passed it along to our product team for review. While we can’t guarantee a timeline, we’re always working to improve tawk.to based on feedback like yours.
Let me know if you have any questions, feedback, or other suggestions. Happy to help.
Let me get this straight. You have an api for a CHAT WIDGET and the first method you guys DIDN’T ADD was flipping SEND A CHAT???
This is a TRANSPARENT decision strictly based on money so you can push your own AI garbage. This decision alone has lead me to decide to not use Tawk to ever again.
What an absolute travesty.
Hi @digiaust ,
I understand your frustration, and I appreciate you taking the time to share your feedback. Our goal is always to improve our platform in a way that benefits our users, and I can assure you that our decisions are not driven by restricting functionality but rather by how we prioritize development based on demand and feasibility.
That being said, I’d love to better understand your use case and how the absence of this particular feature impacts your workflow. If you have any specific needs, please let us know—we’re always open to feedback and looking for ways to improve.
Thanks
With a chat platform and API, it makes basic sense to have the ability to send and receive messages via API to allow custom applications and interactions occur, lookup and respond with account details, recommend specific help docs, integrate existing AI bots already trained on company resources to respond, add chats to tickets, allow responses from slack or other platforms, a whole HOST of reasons to add the ability to send a message to a specific chat via API.
IDK what other specific use cases you are looking for? You have a chat platform whose basic function and purpose is to send and receive chats, why on earth would you not have added that ability from the beginning in the API??
Here are some uses off the top of my head:
- Inject messages on behalf of a human agent from a third-party interface.
- Personalized Customer Experience
- Send custom, targeted onboarding messages automatically.
- Recommend specific help docs or videos based on page behavior or history.
- Deliver contextual nudges (“Hey, still stuck? Want to schedule a call?”).
- Use backend data to tailor responses (e.g., “I see you last logged in on Friday…”).
- Ticketing & Workflow Systems
- Auto-send messages when a ticket is updated or closed
- Create hybrid support workflows that combine chat + ticketing
- Log chats and follow up via API with a message saying “Your case is now in progress” or “Issue resolved.”
- Marketing, Sales, and Lifecycle
- Trigger chat messages from drip campaigns or nurture sequences.
- Reactivate cold leads by sending an automated chat ping
- Follow up after sign-up with personalized encouragement (“Hey Customer, need help setting up?”).
- Re-engage customers who visited certain pages or abandoned onboarding
- Product & App Integrations
- Let external apps (SaaS, mobile, etc.) trigger messages to in-app chat.
- Allow third-party partners to use white-labeled chat with API-powered messaging.
- Connect to analytics platforms to react to behavior with a custom chat message.
- Monitoring & Escalation
- Auto-alert agents about fraud flags, account issues or unusual activity.
- Automatically escalate messages to a supervisor via chat when certain keywords appear.
- Whisper message to agents with real-time coaching or tips.
- Agent Collaboration
- Allow internal messages or whispers via API (e.g., a manager gives feedback).
- API-driven handoffs between departments or shifts
- Alert other internal systems or dashboards that an agent replied.
- Testing & QA
- Simulate customer behavior in test environments with message injection.
- Run A/B tests of messaging content and analyze performance via automation
- Easily create automated regression tests for the entire chat flow.
- Obviously Automation AI Integration
- Trigger responses from ChatGPT or other AI engines based on customer queries.
- Automatically reply with account details e.g., balance, order status, appointments.
- Integrate custom NLP bots trained on your internal knowledge base
- Prefill chats with AI-generated drafts for agents to approve/send.
- Send bot-guided onboarding flows for new customers.
- Cross-Platform Integration
- Send chat replies directly from Slack, Teams, or Discord
- Trigger messages to and from CRM platforms e.g., HubSpot, Salesforce.
- Respond via email parsing bots into chat customer sends email, bot sends response in chat.
- Unified inbox across platforms, with replies injected back into the Tawk chat via API.
- Integrate with IoT devices or dashboards that alert a customer in real time e.g., system down, payment overdue.
- DevOps Internal Tooling
- Build internal admin dashboards to monitor and inject messages into any conversation.
- Let support agents send prewritten macros or workflows via a single API call.
- Enable backend systems to post messages based on business events e.g., subscription canceled, invoice paid.