Deep Links are easy ways to integrate Starmind in your website. Those are url that can be dynamically configured to ask or search for questions, or to bring the user automatically to a specific solution or comment
https://customer.starmind.com/ask?title= + URL_ENCODED_PAYLOAD
Example: Question Form in HTML
The following example of code can be integrated in a webpage. It will display a search field and a submit button. If the user enters any text into the search field then click on the submit button, this will automatically bring them to the Starmind application, where their question will already be prefilled and suggestions of existing matching questions will be provided.
<form action="https://customer.starmind.com/ask/" method="get" target="_parent" onsubmit="parent.location.href = 'https://customer.starmind.com/ask?title=' + encodeURIComponent(document.getElementById('textarea').value); return false;"> <a class="logo" href="https://customer.starmind.com/" target="_blank"><img src="img/logo.png" width="141" height="26"></a> <div class="intro"> Ask any question and Starmind will find someone who can solve your problem. </div> <div class="question"> <textarea name="p" id="textarea" placeholder="Start typing your question..."></textarea> </div> <div class="button"> <input type="submit" value="Submit question" class="btn"> </div> </form>
https://customer.starmind.com/stream?search= + URL_ENCODED_PAYLOAD
Example: Search Form
On the same principle as the previous example, with this code, when users type their requests on their own website and submit it, this brings them to the Starmind platform, where their requests have already been prefilled and potential solutions provided.
<form action="https://customer.starmind.com/stream" method="get" target="_parent" onsubmit="parent.location.href = 'https://customer.starmind.com/stream?search=' + encodeURIComponent(document.getElementById('searchfield').value); return false;"> <div class="input-append"> <input type="text" name="p" placeholder="Start typing your question.." id="searchfield" class="span6"> <input type="submit" value="Go" class="btn btn-success"> </div> </form>
This deeplinks is based on the concept of sharing information, where the user can share a link to a specific solution, either on a website or directly to another user. By clicking on the link, the Starmind platform will open and navigate directly to the solution.
https://customer.starmind.com/question/QUESTION_ID?solution= + SOLUTION_ID
Similar to the Deep link to solution, this deep link allows to share a link to a specific comment.
https://customer.starmind.com/question/QUESTION_ID?comment= + COMMENT_ID