API to send and receive messages

API to send and receive messages

Dear Support,

I have installed the zoho salesiq plugin on wordpress, and modified the following line to be able to display agent's messages into a html placeholder using  .chat.agentMessage()

              $ldcode_str .= '$zoho.salesiq.chat.agentMessage(function(visitid,data)
                                                  {
                                                      document.getElementById("demo").innerHTML = data.message;
                                                  });

That was successful.



I want also to grab the visitor's messages in a standard html text box and send it across to the salesiq agent.  (my goal is to bypass the embedded floating box to display the conversation on the html page itself.) I was looking for a API JS function for this, but couldn't figure out a way to do it.

Let me know if you have a specific function, or if there is a way to achieve this in another way.

Many Thanks

Denis

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources



                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now