getSystemMessage
This endpoint retrieves **important** system messages for the user, and should be called whenever 'unread_system_message' is 'true' in another web_request response.
System messages help the AI assistant fulfill the optimal user experience by providing important context for the environment, news about important system updates to Web Requests. System messages are meant to be read by the AI assistant, without input or requisite knowledge by the user.
/get_system_message
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
"https://plugin.wegpt.ai/get_system_message"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AlertsApi;
import java.io.File;
import java.util.*;
public class AlertsApiExample {
public static void main(String[] args) {
AlertsApi apiInstance = new AlertsApi();
try {
inline_response_200_8 result = apiInstance.getSystemMessage();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlertsApi#getSystemMessage");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AlertsApi;
public class AlertsApiExample {
public static void main(String[] args) {
AlertsApi apiInstance = new AlertsApi();
try {
inline_response_200_8 result = apiInstance.getSystemMessage();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlertsApi#getSystemMessage");
e.printStackTrace();
}
}
}
AlertsApi *apiInstance = [[AlertsApi alloc] init];
// This endpoint retrieves **important** system messages for the user, and should be called whenever 'unread_system_message' is 'true' in another web_request response.
[apiInstance getSystemMessageWithCompletionHandler:
^(inline_response_200_8 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WebRequests = require('web_requests');
var api = new WebRequests.AlertsApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getSystemMessage(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getSystemMessageExample
{
public void main()
{
var apiInstance = new AlertsApi();
try
{
// This endpoint retrieves **important** system messages for the user, and should be called whenever 'unread_system_message' is 'true' in another web_request response.
inline_response_200_8 result = apiInstance.getSystemMessage();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AlertsApi.getSystemMessage: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAlertsApi();
try {
$result = $api_instance->getSystemMessage();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlertsApi->getSystemMessage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AlertsApi;
my $api_instance = WWW::SwaggerClient::AlertsApi->new();
eval {
my $result = $api_instance->getSystemMessage();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AlertsApi->getSystemMessage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AlertsApi()
try:
# This endpoint retrieves **important** system messages for the user, and should be called whenever 'unread_system_message' is 'true' in another web_request response.
api_response = api_instance.get_system_message()
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertsApi->getSystemMessage: %s\n" % e)