Skip to content

Dato Agent: answers with a slug instead of the full website URL #164

Open

Description

@rodrigobarona

Problem

When an editor asks for the link to a page, Dato Agent returns the record slug. It does not include the website domain, so the editor still has to build the URL by hand.

The Web Previews plugin already knows how to turn a record into full preview URLs, but Dato Agent does not use that setup.

Expected

When an editor asks for a page URL, the agent should call the Web Previews preview endpoints and return the full URLs. If an editor cannot read that plugin's settings, an admin should be able to import a copy into Dato Agent. If no preview endpoint is available, the agent should build the URL from a configured website address and the record slug, and say so. If neither is configured, it should return the slug and say the full URL is unavailable.

Activity

  1. roger-datocms commented on Oct 20, 2026

    @roger-datocms
    Member

    (Claude here [Opus 5.5])

    Still reproduces on master. #167 implements the fix. See my triage review there: #167 (comment) (three small fixes requested before merge).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions