HARPA.AI
LIBRARYUSE CASESGUIDESAI COMMANDSBLOG

๐Ÿ‘ฉย ย Web Service Support Agent

Acts like a customer support agent answering questions grounded in the website content.

Created by HARPA AI
Updated on Nov 11, 07:51
Installed 142 times

How to Use

IMPORT COMMAND

Content

- message: >-
    **Tip:** This command acts as a support agent, answering questions scanning
    website content, [full guide
    here](https://harpa.ai/guides/page-parameter-page-crawler#tl;dr:-page-fetching).
    Use this command as a template for your commands.
  type: say
- message: 'Type your question or query about a product, service or website:'
  type: ask
  param: query
  options: null
  default: ''
- param: website
  message: 'Product webpage to scan for answer, pleass Enter for {{domain}}:'
  type: ask
  options:
    - label: ๐ŸŒ THIS WEBSITE
      value: '{{domain}}'
    - $custom
  default: ''
  optionsInvalid: false
- value: '{{serp {{query}} site:{{website}}}}'
  type: calc
  func: set
  param: data
  format: ''
- type: calc
  func: serp.extract-links
  from: data
  to: links
- prompt: >-
    Please ignore all previous instructions.

    The output should be in {{language}}.


    As a Customer Service Agent and the keeper of the database for the website
    "{{website}}",


    I want you to create a detailed response to my query, adhering to a 

    specific format I provide:

    - Use only the [INFORMATION] that I provide to you.

    - Do not use any other tools or sources.

    - Please integrate insights from the additional information into your 
      response and ensure the inclusion of links in a markdown format: [[1]](URL).
    - Please avoid general phrases and unrelated words in your response to my
    question.

    - Do not fabricate facts or information.


    FOLLOW THE FORMAT:

    ## Customer Service Agent Response to "{{query}}"

    ... detailed response text with links, e.g., [[1]](URL).


    [USER QUESTION]: {{query}}


    [INFORMATION]:


    - {{links.0.title}} {{links.0.url}} {{links.0.description}}

    {{page {{query}} {{links.0.url}} limit=20%}}


    - {{links.1.title}} {{links.1.url}} {{links.1.description}}

    {{page {{query}} {{links.1.url}} limit=20%}}


    - {{links.2.title}} {{links.2.url}} {{links.2.description}}

    {{page {{query}} {{links.2.url}} limit=20%}}


    [Your detailed response to the user's query]:
  type: gpt
  param: gpt
  dumb: false
Contact us
HomeUse CasesGuidesPrivacy PolicyTerms of Service
CAN WE STORE COOKIES?
Our website uses cookies for the purposes of accessibility and security. They also allow us to gather statistics in order to improve the website for you. More info: Privacy Policy