HARPA.AI
LIBRARYAPIGUIDESAI COMMANDSBLOG

๐Ÿ’Šย ย Template-Based Support Email Response Generator

Acts as a customer support agent who answers questions using response templates that you provided as examples. #grid #make #email

Created by HARPA AI
Updated on Feb 6, 13:53
Installed 280 times

How to Use

IMPORT COMMAND

Content

- message: |-
    **Tone Instructions:**

    ```
    {{tone}}
    ```


    **User & Email Signature Settings:**

    ```
    {{userinfo}}
    ```

    You can change this in the HARPA settings.
  type: say
  interpolate: true
- param: g.responseTemplates
  message: >-
    Copy and send as many response templates as possible from your previous
    replies to user emails. This needs to be done once.
  optionsInvalid: true
  type: ask
  default: ''
  condition: '{{g.responseTemplates}} ='
- message: 'Copy&Paste user''s support request:'
  type: ask
  param: query
  options: null
  default: ''
  label: SEND USERS REQUEST
- prompt: >-
    Please ignore all previous instructions.

    The output should be in {{language}}.


    As a Customer Service Agent.  I want you to create a detailed email response
    to support query, adhering to a  specific format I provide:

    - Use only the information from [RESPONSE TEMPLATES] that I provide to you.

    - Do not use any other tools or sources.

    - Please avoid general phrases and unrelated words in your response to my
    question.

    - Do not fabricate facts or information.

    - Follow my tone of voice: {{tone}}

    - Follow my signoff instructions: {{userinfo}}

    - Do not add any notes or comments.

    -  Write an email draft in two formats: markdown and html, wrapping each in
    a separate code block.


    Response format:


    Markdown: 


    ```markdown

    email response text in markdown

    ```


    HTML:


    ```html

    email response text in html format

    ```


    [USER SUPPORT REQUEST]: {{query}}


    [RESPONSE TEMPLATES]: 


    {{g.responseTemplates}}



    [Your detailed email response to the user's query]:
  type: gpt
  param: gpt
  dumb: false
- type: calc
  func: extract-code
  to: email.markdown
  param: gpt
  index: first
- type: calc
  func: extract-code
  to: email.html
  param: gpt
  index: last
- type: ask
  param: action
  message: Pick an option or write what to fix in the response.
  options:
    - label: โœ… NEXT
      value: next
    - label: โ›” DONE
      value: done
    - label: โš™๏ธ CHANGE TEMPLATES
      value: settings
    - $custom
  default: ''
  vision:
    enabled: false
    mode: area
    hint: ''
    send: true
  optionsInvalid: false
  label: NEXT ACTION
- type: stop
  condition: '{{action}} = done'
- type: jump
  to: SEND USERS REQUEST
  condition: '{{action}} = next'
- type: group
  steps:
    - param: g.responseTemplates
      message: >-
        Copy and send as many response templates as possible from your previous
        replies to user emails. 
      optionsInvalid: true
      type: ask
      default: ''
      condition: '{{g.responseTemplates}} ='
    - type: say
      message: โœ… Saved.
    - type: jump
      to: SEND USERS REQUEST
  condition: '{{action}} = settings'
  label: CHANGE TEMPLATES
- type: gpt
  prompt: '{{action}}'
  param: gpt
- type: jump
  to: NEXT ACTION
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