Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a token file that contains your personal access token with the following template:

    Code Block
    languagetext
    Authorization: Bearer <paste youre personal access token here>
    Content-Type: application/json; charset=utf8
  2. Open a command prompt with access to curl and setup the following:

    Code Block
    curl -X PUT 'https://repo-prod.prod.sagebase.org/repo/v1/agent/registration' -H @C:/Users/John/.synapse/non-admin-token.txt --data-raw '{"awsAgentId":"I6DE8ZTR25"}'
  3. You will need to replace: C:/Users/John/.synapse/non-admin-token.txt with the path to the token file you created in step 1.

  4. You will also need to replace the awsAgetnId with your own agent ID from step 17. of the previous section.

  5. Once curl command is setup correctly, pres enter to execute it. If successful you should receive a response similar to:

    Code Block
    languagejson
    {"agentRegistrationId":"9","awsAgentId":"I6DE8ZTR25","awsAliasId":"TSTALIASID","registeredOn":"2024-11-15T02:27:18.846Z","type":"CUSTOM"}

  6. Make sure that resulting awsAgentId matches your agent’s ID, and record the resulting agentRegistrationId.

  7. Now that we have an agent registration ID for our new agent we can test our agent in production using the following URL (replace the '9' with the agentrRegistrationId you received in step 5):

    Code Block
    https://www.synapse.org/Chat:initialMessage=hello&agentRegistrationId=9

...