Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify function for any device/messenger #187

Open
jleinenbach opened this issue Mar 30, 2024 · 1 comment
Open

Notify function for any device/messenger #187

jleinenbach opened this issue Mar 30, 2024 · 1 comment

Comments

@jleinenbach
Copy link

This is my version of the notify function. It is tested with GPT 4.
Just tell which entity should be notified.
(Disclaimer: With great power comes great responsibility. More capabilities for ChatGPT also mean a higher security risk if an unknown person gains access to it.)

- spec:
    name: send_message_to_messenger
    description: Use this function to send messages to a messenger.
    parameters:
      type: object
      properties:
        service_name:
          type: string
          description: The specific notify service to use, dynamically set at runtime.
        message:
          type: string
          description: The message you want to send.
        title:
          type: string
          optional: true
          description: The title of the notification, if applicable.
        target:
          type: array
          items:
            type: string
          optional: true
          description: The recipient that will receive the notification. It's platform specific.
        data:
          type: object
          optional: true
          description: Additional data for extended functionality, it's platform specific.
      required:
      - service_name
      - message
  function:
    type: script
    sequence:
    - service: "{{ service_name }}"
      data:
        message: "{{ message }}"
        title: "{{ title | default('') }}"
        target: "{{ target | default([]) }}"
        
@jleinenbach
Copy link
Author

I don't know if this has something to do with ChatGPT 4, but with GPT 3.5 this does not work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant