Search...
Menu

GPT integrated interface

Download

By calling the GPT integration interface, you can integrate the HelpLook knowledge base (CMS) and a customized chatbot into your website, app, mini-program, etc., to achieve intelligent responses.

Request method Request address
GET https://api.helplook.net/api/chats

parameter

Parameter name type Required illustrate
question string yes

Customer Questions

web_search_switch int no

Enable online search ( consumes one additional AI search attempt ): 1 - Yes 0 - No (Default)

session_id string no Session ID
version_id string no Version ID, article version list retrieval, not uploaded as the main version

response:

Parameter name
success 1 - Success 0 - Failure
gpt_info.tool_calls Enable online search and return relevant search links.
answer ai's answer
reasoning
Reasoning process (only available in the DeepSeek-R1 model)
id The ID of this Q&A session (Q&A record ID)
source AI answers related knowledge base articles

Response example:

 {
    "data": {
        "success": "1",
        "reasoning":"这里是推理过程。",
        "answer": "对不起,我已经学习的知识中不包含问题相关内容,暂时无法提供答案。如果你有与我们相关的其他问题,我会尝试帮助你解答。",
        "gpt_info": {
            "id": "02174226787856161f4f3920d13b6b4795da25f480604e7e3bcf3",
            "finish_reason": "stop",
            "created": "1742267881",
            "model": "deepseek-v3-241226",
            "object": "chat.completion",
            "usage": {
                "completion_tokens": "28",
                "prompt_tokens": "10704",
                "total_tokens": "10732"
            },
            "tool_calls": [
                {
                    "web_search": {
                        "content": [
                            {
                                "tool": {
                                    "id": "call_ZNX9sOm4sFY5Bno976vnbAsi",
                                    "function": {
                                        "arguments": "{\"query\":\"2025年3月18日天气\",\"max_results\":5,\"search_depth\":\"basic\",\"include_domains\":[],\"exclude_domains\":[]}",
                                        "name": "search"
                                    },
                                    "type": "function"
                                },
                                "results": [
                                    {
                                        "title": "数据新闻丨回顾2024 那些令人难忘的天气-中国气象局政府门户网站",
                                        "link": "https://www.cma.gov.cn/2011xzt/20160518/202412/t20241230_6766615.html"
                                    },
                                    {
                                        "title": "中央气象台:天 气 公 报(2025年01月18日)|青海省_新浪财经_新浪网",
                                        "link": "https://finance.sina.com.cn/money/future/hyxh/2025-01-18/doc-inefixhk2685864.shtml"
                                    }
                                ]
                            }
                        ],
                        "usage": {
                            "id": "chatcmpl-BCHkZzrJrU0AIZ0MemB75suO3JUlF",
                            "finish_reason": "tool_calls",
                            "created": "1742267867",
                            "model": "gpt-4o-mini-2024-07-18",
                            "object": "chat.completion",
                            "usage": "{\"completion_tokens\": 38, \"prompt_tokens\": 374, \"total_tokens\": 412, \"completion_tokens_details\": {\"accepted_prediction_tokens\": 0, \"audio_tokens\": 0, \"reasoning_tokens\": 0, \"rejected_prediction_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": 0, \"cached_tokens\": 0}}"
                        }
                    }
                }
            ]
        },
        "id": "171441",
        "source": []
    },
    "msg": "Success",
    "code": 200
}
Previous
AI Q&A
Next
GPT Integrated Interface - Stream Mode
Last modified: 2026-11-05Powered by