Skip to main content

Anychat

Anychat builds apps from a chat box. Drop your Ideal Postcodes API key into the project's secrets panel and let the AI wire up Address Finder for you.

What you'll add

UK and international address autocomplete on any address form, powered by the Address Finder widget. For UK-only postcode → address dropdowns, use Postcode Lookup instead.

1. Get an API key

2. Store the key in Anychat

In your Anychat project:

  1. Open the project's environment variables / secrets panel.
  2. Add IDEAL_POSTCODES_API_KEY with your ak_… value.
  3. Save.

3. Starter prompt

Paste this into the Anychat chat:

Add UK and international address autocomplete to the address form using
@ideal-postcodes/address-finder.

- Install the npm package.
- Mount AddressFinder.setup() on the address line 1 input. Populate the
other address fields from the callback.
- Read the API key from the IDEAL_POSTCODES_API_KEY environment variable.
- Reference docs: https://docs.ideal-postcodes.co.uk/docs/address-finder.md

4. Lock down the key

After deploy, add your deployed domain to your key's Allowed URLs.

Need help?