These are instructions on updating the 42Chat AI application.

  1. Log In: Log in to your WashU Sites admin dashboard.
  2. Navigate to the Customizer: From your dashboard, click ‘Appearance’ > ‘Customize.’
  3. Find Footer Settings: Look for a section in the Customizer menu labeled “Footer Settings.”
  4. Locate the Custom Code Field: Inside the Footer Settings, find the field specifically designated for custom code: “Custom PHP.” 
  5. Identify the Target Code: Carefully examine the code currently in the field. Locate the exact block of code that includes the text: messenger.api.42chat.com.
  6. Replace Only the Target Code:
    • elect only the code block you identified in the previous step (e.g., from to or just the <script>…</script> part itself).
    • Be very careful not to delete or alter any other code that might be present in the Custom PHP field if it’s unrelated to the chatbot (e.g. the sustainability logo).
    • Delete the selected code block.
    • Paste your new code snippet into the exact spot where the old code was.
  7. Publish Changes: Click the “Publish” button at the top of the Customizer panel to make your changes live.
  8. Verify: Open your website in a new browser tab (or clear your cache and refresh) and check if the new script is working as expected and that the old chatbot feature is gone.